Xpode.com        Click here to Print this article.

Hide the column of gridview

Some times, may have the conditions where developer need to hide the Gridview Column. We need to remember that every columns in gridview have a Column value. Which starts from 0.

First column - 0 index
Second Column - 1 index

To Hide the Grid Columns we 'll use this line. We will give the address of column.

GridView1.Columns[0].Visible = false;

It means we are hiding the first column of the gridview.



http://
http://

Contributed by:
Rohit kakria
I am software developer

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=150

Click here to go on website