grdStateAtten.Rows[0].Cells[0].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[1].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[2].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[3].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[4].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[5].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[6].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[7].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[8].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[9].Text = ds.Tables[0].ToString(); grdStateAtten.Rows[0].Cells[10].Text = ds.Tables[0].ToString(); grdStateAtten.DataBind();
Quote:gridview index was out of range. must be non-negative and less than the size of the collection. parameter name: index
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)