c# - Restore oryginal value after validation fails - infragistics UltraWinGrid -
i've set regexppattern property in infragistics ultrawingrid column , works - when user edit cell , given input doesn't match regexp cell cleared. restore previous ( before edit started) value of cell instead of make blank. how can it?
thanks in advance!
i found solution:
create event handler grid's event: celldataerror
- set event argument properties in following sample:
private void _ultragrid_configlist_celldataerror(object sender, infragistics.win.ultrawingrid.celldataerroreventargs e) { e.stayineditmode = false; e.raiseerrorevent = false; e.restoreoriginalvalue = true; }
Comments
Post a Comment