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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I programatically select the last row of a GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

70908 Jan 8,2008 03:51 PM Jan 9,2008 06:08 PM Windows Forms 1
loading
Tags: GridControl
Jay Delp
Asked On January 8, 2008 03:51 PM

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??


haneefm [Syncfusion]
Replied On January 9, 2008 06:08 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;