RA
Rajagopal
Syncfusion Team
August 10, 2007 02:35 AM UTC
Hi Rajani,
Please try the code below in the SourceListListChanged event of the grid to retain the row position in the grid when rows are added/deleted.
Record rec = this.gridGroupingControl1.Table.Records[5];
int rowIndex = this.gridGroupingControl1.Table.DisplayElements.IndexOf(rec);
this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(rowIndex, 1, GridSetCurrentCellOptions.ScrollInView);
Let me know if this helps.
Have a nice time.
Regards,
Rajagopal