Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The gridview datas is taken from database.But i want to hide the first column of the gridview...................
Posted

Your solution lies here: WPF Grid Column and Row Hiding[^]
 
Share this answer
 
C#
private void gridview1_AutoGeneratedColumns(object sender, EventArgs e)
       {
           gridview1.Columns[0].Visibility = System.Windows.Visibility.Hidden;
       }
 
Share this answer
 

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