Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing length of a grid column

Status
Not open for further replies.

kurie

Programmer
Jun 4, 2008
170
ZA
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.
 
This is a 3rd party control. Contact the vendor for support on the product.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top