C datagrid cellvalidating
I will load the DGV with the table selected by user in the combo box.
Now when user select company table it may contain 4 columns, when user selects order table it may contain 6 columns.
thanxxxxxxxxxxx If you have attached an event handler to the Cell Validating event then it will always fire when focus leaves the cell.
How can I disable the cell validating event for the rows that was added before???
So i need to have 50 if else statements to validate 50 columns.
Is there any other method to implement like this kind of cell validation.
My problem is, since the DGV is bound to dataset this dataset may contain n number of tables.
Each table will have diferent column name and different number of columns.
Or if not, then it is because the user has entered an invalid value in the current cell. Something there is causing the cell validating event to fire. [Edit] The validating event is firing because focus is being moved from the DGV to the button.