Home Forums WPF controls Xceed DataGrid for WPF Manually adding data to a detail row

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26711 |

    I’m trying to manually add data to the DataGrid. I can add a row fine (by adding a DataRow to the Items), but I’m not sure how to add a detail row. I’ve created a DetailConfiguration, but am not sure how I create a row for this detail and how to add it to the grid.

    Imported from legacy forums. Posted by Scott (had 1893 views)

    Xceed Support
    Member
    Post count: 5658

    You cannot directly add items to a detail like you would to the Items collection of a DataGridControl. That said, I suggest you create a custom DataGridDetailDescription in whose GetDetailsForParentItem override, you return the items you want to display as details.

    Take a look at the <a href=”http://doc.xceedsoft.com/products/XceedWpfDataGrid/Creating_a_custom_detail_description.html”>Creating a custom detail description</a> example.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 2995 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.