Hi there, I have a question regarding datagridview, I add data to the datagridview in an interface and all the validation for the datagridview cell is in the datagridview cell validating event for the datagridview.
I display the data of the is datagridview in another interface and make the cells read-only. But the thing is when I click on a row that data was added previously and press the Add new row the cell validating event is triggered.
You can use data validation to restrict the type of data or the values that users enter into a cell.
One of the most common data validation uses is to create a drop-down list.
Since you have not added your new row yet it should validate OK." yeah i think it is because of the line you have said above how can i avoid this situation???
thankxxxxxx There are two ways to manage unwanted execution of event handlers.
1) Add a conditional statement in the event handler code to only execute when required.