Hai All,
I binded the Grid with customer with order details.I was binding using entity.It shows like,
Customers(Header)
-Customer1
(+)OrderDetails
-Order1
-Order2
-Customer2
In here i dont need to show those orderdetails(+)(that hirarchial structure only).i just want to show customers with order details.
-Order3
-Order4
like this,
How can i do this?
As far as I know, you cannot have the grid "skip" a level of the data hierarchy. You'll need to create an adapter class that re-shapes the data into the hierarchy that you wish to display.
Is the old answer still valid, or is there a new XamDataGrid way for skipping a level now (e.g. via AlternateBinding)?
Meanwhile, I got an answer via Infragistics Support Case. It contained the following statement: "Currently, it does not appear to be possible to set up a hierarchy with an AlternateBinding. The AlternateBinding will bind directly to the child collection rather than evaluating it as a hierarchy."
Hello Gero,
I apologize for the confusion in this case, but it appears that I was mistaken and that you actually can set up a hierarchy using an alternate binding. In order to do so, though, you need to set the DataType property of the alternately bound Field to IEnumerable.
I have attached an updated version of the original sample project that you had provided me to demonstrate the AlternateBinding usage with a hierarchy in the XamDataGrid.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer