Amit Patil
Amit Patil

Reputation: 1993

how to hide datagrid column

I have one data grid,I want to Hide last entire column of data grid How to do this... Iam using Asp.net1.1

Upvotes: 0

Views: 378

Answers (1)

Jude Cooray
Jude Cooray

Reputation: 19862

YourGridView1.Columns[LastColumnIndex].Visible = false;

LastColumnIndex should be the index of the last column

Upvotes: 1

Related Questions