c# - Stay in Datagrid edit mode when data is not valid -
i'm new wpf. windows forms , datagridview can force user stay in edit mode if value entered in grid not valid (for example when entering letters in column valuetype set double) code this:
datagridview grid = new datagridview(); grid.dataerror += (sender, e) => { };
i'm trying have similar behavior wpf datagrid no luck. tried following binding options:
datagrid.columns.add(new system.windows.controls.datagridtextcolumn() { header = "aheader", binding = new system.windows.data.binding("aproperty") { validatesondataerrors = false, validatesonexceptions = false } });
but can't see change @ all. entering non valid data causes app crash. idea please?
Comments
Post a Comment