Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




Hide the colum in 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.

Share this article   |    Print    |    Article read by 917 times
Author:
Rohit kakria
I am software developer
Related Articles:
Related Interview Questions: No related interview question