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.

grid last row

Thread ID:

Created:

Updated:

Platform:

Replies:

28914 May 12,2005 09:14 AM May 13,2005 07:11 AM Windows Forms 1
loading
Tags: GridControl
Hrvoje Voda
Asked On May 12, 2005 09:14 AM

I updated dataSet with new user and refreshed grid, but I want to get to the row of that new user.

Administrator [Syncfusion]
Replied On May 13, 2005 07:11 AM

If the grid/dataview has not been sorted, the new row would be the last row in the grid (except for possibly the ''AddNew" row if you have one). So, you could call grid.CurrentCell.MoveTo passing it either grid.Model.RowCount - 1 or grid.Model.RowCount depending upon whether you have a addnew row displayed. You can test grid.Binder.AllowAddNew to see whether the grid has an addnew row or not.

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.

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.

;