Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
XamDataGrid with XamNumericEditor and all programmatically
posted

Hello Infragistics.

I have a Problem with the XamNumericEditor in a XamDataGrid. The mask propperty I set is not working.

Background:

I have a DataTable and fill with this object the XamDataGrid, when the fields are initialized i catch the FieldLayoutInitialized Event and set the MaskProperty for all numeric fields with this pice of Code:

 f.SetValue(XamNumericEditor.FormatProperty, GetFromatProperty(maxvalue));
 f.SetValue(XamNumericEditor.MaskProperty, "{}{" + $"double:{befor}.{header.FieldDecimal}" + "}");
 f.SetValue(XamNumericEditor.ValueConstraintProperty, constraint);
 f.SetValue(XamNumericEditor.ValueTypeProperty, typeof(double));

For every field i have to calulate a new Mask.

Unfortunately there is somethink worng in thouse lines.

Thanks for the help,

Jan

Parents Reply Children
No Data