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
155
Need to allow more than 9 digits when editing cell in XamDataGrid.
posted

I have been searching the forums, and apparently many other folks have run into this same issue. The XamNumericEditor and XamCurrencyEditor seem to default to Decimal data type, which as I understand, only allows up to 9 digits. I have tried changing the data type to double, currency, Int64, etc. with no luck. I am able to type numbers longer than 9 digits in the editor, but as soon as I press Enter or remove focus from the current edited cell, the value gets automatically blanked out. If I only enter 9 digits or less, then the value is preserved in the grid. Also, anything I enter in the decimal spaces gets reset to zeroes when I press Enter or when the editor loses focus.

Thanks in advance for any help.

Here is what I am testing with:

<ig:Field Name="Dollars" >
<ig:Field.Settings>
<ig:FieldSettings AllowEdit="True" EditAsType="{x:Type sys:Double}">
<ig:FieldSettings.EditorStyle>
<Style TargetType="{x:Type ig:XamNumericEditor}" >
<Setter Property="Mask" Value="{}{double:12.2:c}" />
<Setter Property="Format" Value="C" />
</Style>
</ig:FieldSettings.EditorStyle>
</ig:FieldSettings>
</ig:Field.Settings>
</ig:Field>

Parents Reply Children
No Data