Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
XamDataGrid + Hierarchical + Dynamic Columns + Load on demand
posted

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 properties
so 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?