HI,
Ive got ( 10 ) gridview colums i want to hide.
Now i do it like this: But is there a faster way i could do this with less code ?
- customersDataGridView.Columns["CustomerNumber"].Visible = false;
- customersDataGridView.Columns["FirstName"].Visible = false;
- customersDataGridView.Columns["lastName"].Visible = false;



Manas MohapatraRank #182 · 13.2K reputationPosted Nov 1, 2016, 12:59 AM EDT
Cassie ModRank #3,821 · 387 reputationPosted Nov 1, 2016, 1:02 AM EDT
Prakash KumarRank #1,799 · 828 reputationPosted Nov 1, 2016, 3:07 AM EDT