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
1935
UltraGrid - DataSource with 3 tables but only 2 of them has relations
posted

Hi

i have 3 tables in the DataSet

2 of them has Relations set but the 3rd table is not a child of any of them and therefore does not have relations to any of the other 2 tables.

what i am aiming for, if it is even possible, is to have 3 bands but only 2 of them are Parent Child and the 3rd is seperate band at the Parent level.

i,e,

Parent  <-table 0
      Child <- table 1

-----------------------------------
Parent <- table 2 !!!

the Parent of table 2 should always be on the bottom of Parent and Child (tables 0 and 1).
meaning when expanding the parent of table 0 and reveling the Childs (table 1) then the Parent (table 2) will slide down.

i added the 3rd table to the DataSet but the Grid did not respond to it. i dont see the data there and when i check  Grid.DisplayLayout.Bands.Count it shows only 2. meaning it didn't take the 3rd table at all.

is it even possible to achive? do i need to use RowRegionScroll somehow?

Parents
  • 469350
    Offline posted

    Hi,

    The WinGrid only supports a single root band - you cannot have multiple root bands. But it seems like you could easily achieve what you want using two grids.

Reply Children