Remove Column from DataGridView
I tend to just hide the fields instead.
gvUsers.Columns["ID"].Visibility = false;
Et cetera.
you could also use gvUsers.Columns.RemoveAt(IndexOfColumn);
I tend to just hide the fields instead.
gvUsers.Columns["ID"].Visibility = false;
Et cetera.
you could also use gvUsers.Columns.RemoveAt(IndexOfColumn);