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
535
Multi dataTables displayed in one grid
posted

L.S,

 I am trying to get two seperate datatables combined into one grid.
The two datatables are linked in the dataset with a relation, however I do not want a multiband layout.
I would prefer them on the same row.

If any could help, I would greatly appreciate it.

  • 469350
    Verified Answer
    Offline posted

     Hi,

        The WinGrid will show the data source you give it, but it can only display one data source. So if the data in your DataSet is in a hierarchy, it will display that way in the grid. But there's no way to display two tables in the same grid unless they are related.

        You could use two separate grids, of course.

        Another alternative would be to use UltraWinTree instead of UltraWinGrid. The tree allows you to bind the children of individual nodes. So you could add two nodes to the root level of the tree and then bind the children of those nodes to 2 different tables.

        Or you could create a data structure with two parent rows and then two child tables. Or one table that contains all of the data you want from both tables. 

        Yet another alternative would be to use UltraDataSource in OnDemand mode as an intermediary between the grid and the data, so that you could display data from both tables in one grid.