hi !!
i have a WebHierarchicalDataGrid which i bind to a WebHierarchicalDataSource. This datasource reads data based on a few controls on the page. I aslo add a checkbox column to the datagrid.
The user will then check some of the rows and click another button to fill a UltraWebTree based on the selected data.
The problem is that on this postback the checkboxes or data isnt there anymore. ive tried to set enabledataviewstate and then the data is there but then i get a weird error message after a few postbacks.
this.UltraWebGridSok.DataSourceID = "dsStatistikk";Linje 210: this.UltraWebGridSok.DataBind();(Kan ikke bruke objekttypen Infragistics.Web.UI.Framework.Data.DataRecord som System.Web.UI.IHierarchyData)
means cannot use objecttype datarecord as ihierarchydata ??
other ways to keep the grid data on postbacks ?
Hi,
I am not sure that I understand your setup correctly, but it sounds like you are dynamically assigning the datasource to the WHDG, to make sure the grid has a datasource on postback, just keep re-assigning the datasource on every postback. If I didn’t understand your setup, please created a simple sample that reproduces the issue and attach it to the post.
Thanks,Olga