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

Grid Validation

Thread ID:





20771 Oct 25,2004 04:10 PM UTC Oct 25,2004 04:39 PM UTC WinForms 1
Tags: GridControl
Asked On October 25, 2004 04:10 PM UTC

Hello I have a GridDataBoundGrid on a tabcontrol..which is bound to a datatable.. some columns of the datatable are set to AllowDBNull=false. so when i move on to a new row without entering the values.. i get error message to enter the values the must required column. but when i move on to a diffrent tab without entering the value in must required column of the grid... it gives me the error message but moves on to the next tab and i get stuck in a loop of error messages as i now am on a different tab and grid now has a row that is in edit mode in which one of the required columns is not filled in. How to get around this.. i would like to cancel the edit of row when i move on to next tab of the tab control Thanks Gaja

Administrator [Syncfusion]
Replied On October 25, 2004 04:39 PM UTC

You can try to catch the grid.Leave event. In that event, if grid.CurrentCell.IsEditing, try calling grid.Currentcell.CancelEdit and grid.Binder.CancelEdit.


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

Live Chat Icon For mobile
Live Chat Icon