How you will Hide Column(s) in the Windows Forms DataGridView Control?

 Posted by Syedshakeer on 5/19/2009 | Category: .NET Framework Interview questions | Views: 8604
Answer:

Set the DataGridViewColumn.Visible property to false.

vb.net:
-------
dataGridView1.Columns("CustomerID").Visible = False

c#.net:
------
dataGridView1.Columns["CustomerID"].Visible = False;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response