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
2430
Win Grid vs. Data Source
posted

I have a WinGrid that I want two bands associated to it.

So I attached a datasource but I can't really define the relationship in the datasource.  When I attached a datasource with a bogus relationship to create the band,

it wouldn't add correctly.

                        DriverGrid.ActiveRow = row;

                        UltraGridRow PassengerRow = DriverGrid.DisplayLayout.Bands[1].AddNew();

I thought I was adding a row under the activerow but in reality it added under all childbands[0] rows.  I only want to add a row under the current active row (probably based on my bogus relationship).

How do I resolve?

Alternatively if i could define the childband at runtime easily and add data - that could work as well.  I would prefere to get the AddNew working correctly however.