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
15
UltraGrid's ChildBand rows disappear when changing the linked field value of the parent row
posted

Hello,

I have a Windows form with an UltraGrid using a DataSet as its data source. The DataSet contains 2 tables with 1 relation defined (table1's "stepName" field = table2's "parentStep" field). When first loading the form, the UltraGrid correctly shows table1 rows as the parent rows and table2 rows appear as child rows to its appropriate parent row. I am using an UltraGridRowEditTemplate to edit the UltraGrid row.

When I rename table1's stepName, the new stepName for the parent row is displayed but the child rows disappear as soon as the UltraGridRowEditTemplate closes. The DataSet's table2 parentStep is updated with table1's new stepName in the ultraGrid_AfterRowUpdate event, which is fired after UltraGridRowEditTemplate.Close and then UltraGridRowEditTemplate.CommitChanges.

When I debug the UltraGrid's datasource, it shows that table2's parentStep field is updated with the new value. When I save, close and reopen the form, I see the updated stepName and the child rows. So it appears to be just a display issue after the rename. 

Things I have tried:

  • ultraGrid.Rows.Refresh(RefreshRow.ReloadData); //(also tried FireInitializeRow and RefreshDisplay)
  • ultraGrid.ActiveRow.Refresh(RefreshRow.ReloadData); //(also tried FireInitializeRow and RefreshDisplay)
  • ultraGrid.ActiveRow.ChildBands[0].Rows.Refresh(RefreshRow.ReloadData); //(also tried FireInitializeRow and RefreshDisplay)
  • ultraGrid.Invalidate();
  • ultraGrid.Refresh();
  • Isolate the same exact code into a smaller project. The issue does not occur in this case.

I am using v19.1.20191.379.

Any other suggestions on what I can try? If you need additional information to help me troubleshoot, please let me know!

  • 29185
    Offline posted

    Hello Jean, 

    Thank you for contacting Infragistics. We're not aware of anything related to this at the moment. If you happen to isolate the behavior we will be more than happy to review it for you and help out.