C#C
C#16mo ago
Runnarin

Validate datagridview cell values

I have a data grid view that my user can edit and add new lines
This is my grid:
Quantity | Item | unit price | price
The column quantity needs to be a number

Is there a way to automatic validate the cell value or do I have to do it manually?

I sent a print from the visual studio format string dialog from the cellstyle builder, but does not work, as expected lol
qMvNytzR562s8pHL.png
Was this page helpful?