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
205
Insert row programmatically in an UltraGrid with multi columns header
posted

i want to insert an ultraGridRow in an ultraGrid with multi columns heade, please can you help me?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The grid always shows new rows at the end because of the way the BindingManager notifications work. There's no way to insert a row via the grid. But what you could do is add a new row and then move that row to the position you want. Something like this:


                UltraGridRow row = this.ultraGrid1.DisplayLayout.Bands[0].AddNew();
                row.ParentCollection.Move(row, 0);
                this.ultraGrid1.ActiveRowScrollRegion.ScrollRowIntoView(row);

Children