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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row change on GDBG

Thread ID:





28329 Apr 29,2005 12:22 AM UTC May 5,2005 12:44 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On April 29, 2005 12:22 AM UTC

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 05:25 PM UTC

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 5, 2005 12:12 AM UTC

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 5, 2005 12:44 AM UTC

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); }


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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