Hi !
I have a grid with 3 columns, one string, one string and one boolean.
I validate the new row with RowValidating. Work very nice .I put some code if the string columns are empty E.cancel = true .If all the fields are empty even if I press enter or tab the empty row is not added to already existent rows in grid. Nice.
BUT
If I add DefaultValuesNeeded event and I give to the boolean column a value of true, the behaviour of RowValidating is changing.Now If I press enter in any string columns , the row is added to the existent rows in grid, of course with the string values empty,and is not what I expected.
Can someone explain me how to avoid this ?
Regards,
Mihai
I have a grid with 3 columns, one string, one string and one boolean.
I validate the new row with RowValidating. Work very nice .I put some code if the string columns are empty E.cancel = true .If all the fields are empty even if I press enter or tab the empty row is not added to already existent rows in grid. Nice.
BUT
If I add DefaultValuesNeeded event and I give to the boolean column a value of true, the behaviour of RowValidating is changing.Now If I press enter in any string columns , the row is added to the existent rows in grid, of course with the string values empty,and is not what I expected.
Can someone explain me how to avoid this ?
Regards,
Mihai