Cellvalidating error text
Built-in validations through IData Error Info, INotify Data Error Info and Data annotation attributes, can be enabled by setting Sf Tree Grid. You can validate the cells using Current Cell Validating event when the cell is edited. You can show the error information in row header by setting IData Error Info. Sf Tree Grid supports to show the error icon in Tree Grid Row Header Cell based on IData Error Info.
When mouse over the error icon, error information will be displayed in tooltip. Sf Tree Grid will not allow user to edit other cell / row if validation failed.I wrote code in the cellvalidating event as follows. Data Grid View Cell Validating Eve nt Args) Handles Datagrid1. Private Sub Datagrid1_Cell Validating(By Val sender As Object, By Val e As System. I need to check that only one of the two can be checked. Its not permissible to have the two selected to true, but they can both be false.
Search for cellvalidating error text:
We are going through the following C# code to analyze the process of validating data in grid cell.