This site uses cookies. By continuing, your consent is assumed. Learn more

132.6fm shares

Datagridview cellvalidating called twice

opinion

I have DataGridView in which i hvae 3 columns of type Double i Want to validate the sum of these 3 columns should not be more then another column value. Well this is impossible to not happen! Regarding the null if you using sql query you can use the IsNull method:.

you can try this: declare...

Or CellFormatting event as below:. Here is code for conceptual usage meaning the logic is sound but can be implemented a multitude of ways but if the data source is different then that will need to change.

News feed