C datagridview validating

c datagridview validating-46c datagridview validating-62

When you display data entry functionality to users, you frequently have to validate the data entered into your form.

The Data Grid View class provides a convenient way to perform validation before data is committed to the data store.

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.

I want to validate the value being inputted in a cell of the DAta Grid View.