This article demonstrates how to give users the ability to show or hide GridView columns as they require. This can be useful if there are some columns in a GridView which are not always required by all users. Just put this code in RowDataBound event.
Hope this will help you !!!
if (GridView1.Columns.Count > 0) GridView1.Columns[0].Visible = false; // for autogenerated columns GridView1.Columns[3].Visible = false;// for fourth column
Hope this will help you !!!
No comments:
Post a Comment