Search code examples
c#datagridviewmasking

Datagridview mask values in column


How can I "mask" the values of a datagridview in a windows forms application? In example, how can I limit the value in a column datagridviewtextboxcolumn so that is not bigger than a given number? (i.e. cell value in that column < 9.6) I build my datagridview programmatically at runtime.


Solution

  • You can just use if() on CellEndEdit event handler