I upgraded from Syncfusion 2.* to 22.214.171.124 and realized, that Binder.AddRelation changed its behavior. It works fine, when grid''s datasource is typed dataset. It always returns NULL, when datasource is untyped dataset or dataview. Any advice or workaround?
GridHierarchyLevel sectionSetting = this.grdSettings.Binder.AddRelation("SectionSetting");
ADAdministrator Syncfusion Team February 18, 2005 09:28 AM
Can you explain what you mean by an untyped dataset or dataview?
Binder.AddRelations seems to work properly for a custom collection in this sample. \Syncfusion\Essential Suite\126.96.36.199\Windows\Grid.Windows\Samples\DataBound\Hierarchical\Customers\
Whatever IList that "SectionSettings" is in your code, you might have it implement ITypedList also. This will give you the ability to control the contents (through the PropertDescriptorCollection from the ITypedList) of the child grid. Here is a thread with snippets showing how you can implement ITypedList
ADAdministrator Syncfusion Team February 18, 2005 10:53 AM
>Can you explain what you mean by an untyped dataset or dataview?
Untyped dataset is System.Data.DataSet class and dataview is System.Data.DataView class.
But it''s quite strange. I created small test project to demonstrate the bug, but in this project everything works fine.
Maybe there is something wrong in my code, but it worked good with Syncfusion 2.*.
Conclusion - forget about this thread so far, I will try to improve my code or clearly demonstrate the problem.
ADAdministrator Syncfusion Team February 21, 2005 04:16 AM
Just for your info - I solved my problem. I deleted GridDataBoundGrid from my form and then inserted a new one on the form. Now everything works fine.