How can I programatically select the last row of a GridDataBoundGrid

After adding a new row to the underlying DataTable for a GridDataBoundGrid, I want that new (and now last) row of the table to be selected as the current row.

Any clues??


1 Reply

HA haneefm Syncfusion Team January 9, 2008 11:08 PM UTC

Hi JayD,

You can try the below code snippet

this.grid.Model.Selections.Add(GridRangeInfo.Row(this.grid.Model.RowCount));
this.grid.CurrentCell.MoveTo(this.grid.Model.RowCount,1);

and let me know if this helps.

Best regards,
Haneef


Loader.
Up arrow icon