Well i have a list of objects List<UserDC>
now i would want to display this in some kind of grid so i tryed the GridView
GridView1.DataSource = list
GridView1.DataBind()
Well that did work but now i want to hide some columns but that does not seem to be so easy :
GridView1.Columns(0).Visible = False
GridView1.Columns(1).Visible = False
GridView1.Columns(2).Visible = False
this just gives me a exception ArgumentOutOfRangeException
how do i make it generate the columns before it displays the list so i can filter out those that i dont want?