We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon