I’m working on a windows form project. In my form I have a datagrid with a column that must be filled in every row.
I’d like to obtain something similar to MS Mangement Studio: if the mandatory cell in the current row is not filled i could not add another row.
How can i do that?
Use the
CellValidiatingevent to check the value of the column.Something like this: