Home Forums WinForms controls Xceed Grid for WinForms How to set cell value to arbitrary value if validation fails Reply To: How to set cell value to arbitrary value if validation fails

User (Old forums)
Member
Post count: 23064

You can cast the sender to the cell, and use it to set the value, whether you stay in edit mode or leave it.

Cell cell = ( Cell )sender;
cell.Value = “value”;

You can also use the e.NewValue, if you leave the edit mode but want to change the value.

Imported from legacy forums. Posted by André (had 2910 views)