Hi,
I am using XamDataGrid and need each row to be hierarchical (with several child nodes that are hierarchical). It must also load its data on demand and have dynamic child columns based on the results that are returned by a server I'm querying.
Fast forwarding a bit, I have gone down the road of using ITypeList and ICustomPropertyDescriptor to dynamically add/remove propertiesso that columns can be created/hidden from view. To no avail.
I have also tried using a DataSet that contains tables with relationships to ESTABLISH the desired hierarchy,but in doing so have thus far been unable to load data on demand. Unless there's some way to do that?
Here are my requirements:
* Must be hierarchical* Must load data on demand (on expand)* Columns should not be known fully until runtime/on expand/when server is queried.Q: What I have thus far is messy and would like to know if, maybe, there's a more elegant solution to this?
Hello Spencer,
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
I have been looking into your issue and have created a small sample application for you. In the sample application I have a hierarchical data, that I use as a source for the XamDataGrid. The children records are loaded by using a GetData method (in this method a query can also be used). You can check that the children records are loaded when the user clicks on the expansion indication, by placing a break point at the beginning of the method. You can also take a look at the following forum thread for more information: http://es.infragistics.com/community/forums/t/88542.aspx.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.