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
90
How to reference WHDG columns from code behind?
posted

Hi,

I have a WHDG with a 3 level (tables) dataset, Autogenerate columns true. My grid displays fine, 3 band, columns and data are visible. Now I would like to format columns (hide, color, etc...) after binding them.
Tried these in DataBound or simply just after calling DataBind()

grid3.GridView.Columns["Check"].Header.Text = "";
grid3.Columns["Check"].Header.Text = "";

but my Columns collection is always empty. Why is that? 

Thank you

 

Parents Reply Children
No Data