Wednesday, November 6, 2013

How To Hide Certain Column in datagridview C#

In order to hide certain column of datagridview, do something like this

dataGridView1.Columns[4].Visible = false;
  • where dataGridView1 is the name of your datagridview
  • Column starts from index 0 
You can hide multiple columns just change the index number

I hope it was informative for you, and I would like to Thank you for reading

No comments:

Post a Comment