I am using WebHierarchicalGrid which bounds to a dataset contains Parent and child details rows.My application need to support Hebrew and English. I used DataBound event to set the css styles for the grid header to display the test RTL (Right to left ) or LTR (Left to Right). I set the EnableViewState Property to true. SO all are working fine.
If the grid binds with a data which has 4 pages for a search and then tried another search to bind the grid which has only one record, i got RowNotInTable exception.I tried of disabling the ViewState by setting EnableViewState = false. If i do so, then this exception got resolved but the css styles that i have assigned in the Databound event got lost.
Please help me solve the issues and achieve the requirement
Hello bala murugan,
Feel free to contact me if you have any additional questions regarding this matter.
I have been looking into your issue and I could suggest you clear the data source of the WebHierarchicalDataGrid just before rebinding it in case you want to use EnableViewState:
whdg.GridView.ClearDataSource();
whdg.GridView.Rows.Clear();
Another approach that you could try is assigning the styles on Page_Load event, while you bind the WebHierarchicalDataGrid instead of using DataBound event. In this case you could set EnableViewState = false .
If you need any additional assistance on this matter please do not hesitate to ask.