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
130
Problems Manually Creating Band Columns in Code Behind
posted

Running Visual Studio 2010/.NET 4.0/Infragistics Suite 10.2.
WebHierarchicalDataGrid defined with only ID, runat, height, showfooter, and width in the .aspx file.
I have a system.data.dataset defined with a few datatables and relations.

Set IniitalDataBindDepth = 0, InitialExpandDepth = 0, DataMember, Datasource, AutoGenerateBands = true, AutoGenerateColumns = true and then call Grid1.DataBind and the web form works showing the arrows so I can drill down into child rows, click on them, they do the post back, and everything works.

IF, however, instead of doing AutoGenerateBands and AutoGenerateColumns (set both to false), I fill in the Bands and Columns information through code, the page displays okay initially.  When I hit one of the arrows to drill in, however, I get:
   [InvalidOperationException]: LoadViewState_Exception with a huge stack trace.

I get this error really no matter what I do with the grid from then on.  Whether it's trying to drill into child records or sort it by clicking on column heading or anything, it gives the same errors.