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
65
Forcing/simulating expandable rows
posted

Is there any way to force XamDataGrid to display expand button for a given set of rows? I bind to a DataView (received from a DataTable) which already contains data as if it was grouped by and expanded. I know I could use relations but it seems rather artificial since the data is already in a grouped form. 

If there is no way to force expandiblity, how can I achieve it with custom controls in cells?

The data in the DataTable looks like this:

-USD

|item1Id | item1Desc | USD

|item2Id | item2Desc | USD

+GBP   

+PLN

  • 12004
    Suggested Answer
    posted

    Hello Milosz,

    The expand button can be found in the DataRecordPresenter, there is an ExpansionIndicator that sets the Visibility property to determine it's display. Possibly the behavior can be changed by re-templating.

    Let me know if I can provide any further assistance.