Click here to Skip to main content
15,889,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is There any property in asp.net for Grid.ColumnName.Visible = false;
Posted

1 solution

In this way you can control the visibility of the columns of the gridview.
C#
grid0.Columns[0].Visible = false;


grid0 is the gridview name.
 
Share this answer
 
v3
Comments
sunandandutt 16-May-12 3:14am    
GridView1.Columns["This contain column Name"].Visible=false;
bhagirathimfs 16-May-12 3:27am    
Thanks
ravijain03 16-May-12 3:29am    
grdCaseResult.Columns["UNIQUEID"].Visible = false; how visible false as per column name beacuse of index of column might be changes in grid. above solution not working
sunandandutt 16-May-12 5:01am    
can you paste your code what you are going to try?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900