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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -