Am using a DataGridView whose datasource is a typed DataSet. I want to validate per row NOT per cell i.e. even if a value in a cell is erroneous, it should wait until I want to leave the row.
Currently, I am using the RowValidating event handler to validate the row. In addition, I an using the DataError event handler and setting e.Cancel = false so that even if there is an error, I will still move to another cell. The problem is that the value entered in the cell is cleared, which I do not want because i want to give descriptive errors after I am finished with the whole row.
How do i make the invalid cell value to remain when i move to the next cell?