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.

Row change on GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

28329 Apr 28,2005 08:22 PM May 4,2005 08:44 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 28, 2005 08:22 PM

Hi, I need to do some validation as soon user click on different row on a GDBD for the current row. If my validation passes then only I want focus should moved to other row. For example. User modifies some cells on 3rd row and as soon as user clicks on 4th row I want to save the changes for 3rd row first. If every thing is fine then only I want focus to move on 4th row. How should I do it? Which event should I use? Please help.

Administrator [Syncfusion]
Replied On April 29, 2005 01:25 PM

Try using the RowLeave event. Do your tests and if you can to cancel the leave, set e.Cancel = true.

Administrator [Syncfusion]
Replied On May 4, 2005 08:12 PM

Thanks Clay, it did work. But it clears out the selection of current row. I need to keep the current row selected. How should I keep the current row selected? Please do reply! thanks VS

Administrator [Syncfusion]
Replied On May 4, 2005 08:44 PM

Try handling the ValidatedFailed event and selecting the row there. private void gridDataBoundGrid1_ValidateFailed(object sender, GridValidateFailedEventArgs e) { this.gridDataBoundGrid1.Selections.SelectRange(GridRangeInfo.Row(gridDataBoundGrid1.CurrentCell.RowIndex), true); }

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.

;