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
435
How to create multiple rows
posted

Hi,

I am trying to bind a datatable [which has parent child relations  ] to wingrid.  But I am not able to see the difference in row depths when grid is displayed..The parent row and its child rows are displayed on same level.

As I am new to this control, really appreciate a link explains how to display parent-child rows in grid from a single datatable.

Thanks!!

  • 469350
    Suggested Answer
    Offline posted

    You can't display parent and child rows in a single DataTable. The DataTable class is a single flat table.

    In order to display hierarchical data in the grid, you need a hierarhical data source. If you are using DataTables, then you probably want to use a DataSet with 2 or more tables and use the RelationShips to create a hierarachy between the tables.