Skip to content
Loading
  • Bikesh Srivastava
    0
    I think you are doing good.
    there are no any better that this.
    0
  • Amit Gupta
    0
    A little different approach
    for (int x=0; x < gridview.columns.count; x++)
    {
    switch (gridview.columns[x].HeaderText.ToLower ())
    {
    case "firstname":
    case "lastname":
    gridview.Columns [x].Visible =false;
    }
    }
    0