Use cellvalidating event datagridview
I have a Data Grid View that I am using the Cell Validating event when the User tabs out of a cell.
The function looks something like this: If a cell enters edit mode and the value is changed, then the value displayed in the cell is not updated with the formatted version.How can I disable the cell validating event for the rows that was added before??? Based on the value in the cell before leaving I make my Main Form larger and show another Grid... But, when that happens I also want to overwrite the text of the cell the User was in before tabbing.And for the error message to display in the specific cell that the validation is done I have to click on another place for the error message to display.How can I make it when the datagridview value cell value is selected and then the error message display and the cursor is focused in to the same cell.