hie guys
im trying to change a grid column lenght , but i an error/exception message "Failed accessing Grid column by index. Please very that you have specified the structure of RadGrid correctly"
my code is below
DataTable dt = new DataTable();
adapter1.Fill(dt);
RadGrid1.DataSource = dt;
RadGrid1.DataBind();
RadGrid1.Columns[1].ItemStyle.Width = 100;
does anyone know whats causing this.
im trying to change a grid column lenght , but i an error/exception message "Failed accessing Grid column by index. Please very that you have specified the structure of RadGrid correctly"
my code is below
DataTable dt = new DataTable();
adapter1.Fill(dt);
RadGrid1.DataSource = dt;
RadGrid1.DataBind();
RadGrid1.Columns[1].ItemStyle.Width = 100;
does anyone know whats causing this.