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.

Parents
  • 23930
    Offline posted

    Hello,

    Thank you for contacting Infragistics Developer support.

    I will need more information about your scenario. What do you mean by “bogus relationship”? What exactly is your data source and why you can’t create relationships? I tried to reproduce the behavior using a dataset as the data source and using “.DisplayLayout.Bands[1].AddNew();” adds in the child band under the active row. So the issue must be with the relationships of the bands. I have attached my sample, please modify it so it reproduces your issue or send me a sample yourself and I will be glad to help you. 

    I am looking forward to your reply.

    WG_CreateChildBandRows.zip
Reply Children