I upgraded from Syncfusion 2.* to 126.96.36.199 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");
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\188.8.131.52\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
AdministratorFebruary 18, 2005 03:53 PM UTC
>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.
AdministratorFebruary 21, 2005 09:16 AM UTC
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.