The way to hide a column in a DataBound GridView is to trap the RowCreated Event and set a Cell inside the column of the row to Visible = false. Nice!


protected void myGrid_RowCreated(object senderGridViewRowEventArgs e)
{
{
//  hide a cell in the column to hide column 1   e.Row.Cells[1].Visible = false; } }

 

  Modified On Nov-30-2017 02:54:09 AM

Leave Comment