StrataFrame Forum

Insert Row in UltraGrid

http://forum.strataframe.net/Topic12362.aspx

By Tim Dol - 11/1/2007

Does anyone know how to insert a new row on an Infragistics UltraGrid bound to a business binding source?  I have a field for sequencing the records but my new row appears at the end.

I want to be able to insert a row, say between row 3 and 4, but can't quite figure out the logic to achieve this.  Any examples would be great.

Thanks,

Tim

By Trent L. Taylor - 11/5/2007

I would think that you could add a new row then sort the grid which would then place the record in the correct position.  Past that, I would probably look at the Infragistics forum or help docs.
By Walid Abasi - 7/5/2010

you can do it this way :

var row = YourGrid.DisplayLayout.Bands[0].AddNew();

YourGrid.Rows.Move(row, index);
By Greg McGuffey - 7/6/2010

Thanks for the tip Walid!