Hide particular column in DataGridView in ASP.Net

Last Reply on Jan 04, 2014 03:08 AM By Pradip

Posted on Jan 04, 2014 02:55 AM

How to hide column in DataGridview??

In which event of Data Gridview should I write the code??

I know how to hide column in Web C# but dont know in Windows??

plzz...help me

Posted on Jan 04, 2014 02:57 AM

This Way

this.dataGridView1.Columns[0].Visible = false;

Where 0 is the index of the column you can hide the column column after DataGridView is bind.



Posted on Jan 04, 2014 03:08 AM