Wednesday, 15 May 2013

c# - Hiding default gray column in datagridview winform -


What data is not available when there is a way to remove or hide the gray area of ​​winform's datagrid?

The second is how to delete / hide the default gray column?

  dataGridView1.DataSource = oresult; DataGridView1.Column ["Id"]. Visible = false; DataGridView1.Column [[AddBy]]. Visible = false; DataGridView1.Column ["AddInInClass"]. Visible = false; DataGridView1.Column ["IsDeleted"]. Visible = false; DataGridView1.Enabled = false;   

I'm hiding such unnecessary columns, but I'm unable to find a way to hide them.

Enter image details here

You can hide the first column of your datagrid to set

No comments:

Post a Comment