However, the editor will be closed in this case and the value will be committed to the underlying data source. Here is a list of all validation events: Cell Validating: Fires when a cell loses input focus, enabling content validation. You do this by using the Formatted Value property of the Data Grid View Cell Validating Event Args parameter.
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).If you want to validate the data cell by cell, the former event is useful where you want to validate the data for the entire row at once then the later event is handy.In your example, you use the Cell Validating event, as shown below: Here, you want to ensure that the length of the new Customer ID is at least five characters.When the string is empty, the validation fails and the error indicator at the row header is shown: Private Sub Rad Grid View1_Cell Validating(By Val sender As Object, By Val e As Telerik. Cell Validating Dim column As Grid View Data Column = Try Cast(e. Row Is Grid View Data Row Info And Also column Is Not Nothing And Also column. To perform any custom validation on the cell or row being edited, you can use the Cell Validating and Row Validation events, respectively.