Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
GridView1.DataSource = myDataSet; GridView1.DataKeyNames = new string[] { "IsRead" }; GridView1.DataBind(); GridView1.Columns[0].Visible = false; GridView1.Columns[5].Visible = false; GridView1.Columns[6].Visible = false; GridView1.Columns[7].Visible = false; GridView1.Columns[8].Visible = false;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)