Cellvalidating event vb net
12-Sep-2017 03:01
You can validate data by handling Cell Validating event which is raised by Rad Grid View when the current cell changes or when the cell loses input focus (when pressing key).Canceling this event prevents the user from exiting the cell until a valid editor value is entered or the edit process is canceled.And the Error Text tooltip won't be shown as we described in the 2nd issues. Cell Validating event occurs only when a cell value is changed. In case when Esc is pressed, the value remains the same and no validation is needed. If no text is entered in the these columns the Cell End Edit is not fired, and obviously as you stated, the Cell Validating is not either.
Rad Grid View provides a convenient way to perform validation before data is committed to the underlying data source.
Here is a sample: Here, we access new row cell values by using the Data Row Info property, which contains the row that is being added.