Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
hide webdatagrid autogenerated column
posted

hi , iam trying to hide auto generated columns in the webdatagrid using but this won't work : 

WebDataGrid1.DataSource = dt;
WebDataGrid1.DataBind();

this.WebDataGrid1.Rows[0].Items[0].Column.Hidden = true;
this.WebDataGrid1.Rows[0].Items[1].Column.Hidden = true;

iam doing something wrong ? please help.