如何从WPF Infrastics XamDataGrid字段中删除美元符号



我有一个双精度属性,当该属性显示在网格上时,它默认为带有美元符号。如何删除美元符号?我有:

igWpf油田是我遇到问题的地方。如何从igWPF字段中的双精度中移除美元符号?

<igWpf:XamDataGrid Name="Name"
DataSource="{Binding Path=SomeName}"
GroupByAreaLocation="None"
BorderBrush="{StaticResource LightGrayBorder}"
Theme="MetroDark"
FontSize="11"
ScrollingMode="Deferred">

<igWpf:XamDataGrid.FieldSettings>
<igWpf:FieldSettings AllowEdit="False" AutoSizeScope="RecordsInView" AutoSizeOptions="Label, DataCells" CellHeight="35" AllowRecordFiltering="True" FilterLabelIconDropDownType="SingleSelect"/>
</igWpf:XamDataGrid.FieldSettings>
<igWpf:XamDataGrid.FieldLayoutSettings>
<igWpf:FieldLayoutSettings AllowAddNew="False" AllowDelete="False" AutoGenerateFields="False" AutoArrangeCells="Never" RecordSelectorLocation="None" />
</igWpf:XamDataGrid.FieldLayoutSettings>
<igWpf:XamDataGrid.FieldLayouts>
<igWpf:FieldLayout ParentFieldName="SomeName">
<igWpf:FieldLayout.Fields>
<igWpf:Field Name="SomeName" Label="ID" Column="0" Width="Auto" />
</igWpf:FieldLayout.Fields>
</igWpf:FieldLayout>
</igWpf:XamDataGrid.FieldLayouts>
</igWpf:XamDataGrid>

十进制字段的默认编辑器是XamCurrencyEditor。您可以通过将字段的EditorType属性设置为使用XamNumericEditor来更改此设置。

<igData:Field Name="MyField">
<igData:Field.Settings>
<igData:FieldSettings EditorType="{x:Type igEditors:XamNumericEditor}" EditAsType="{x:Type sys:Double}" />
</igData:Field.Settings>
</igData:Field>

https://www.infragistics.com/community/forums/f/ultimate-ui-for-wpf/20454/decimal-field-of-object-always-appears-as-a-currency-when-bound-to-xamdatapresenter

相关内容

  • 没有找到相关文章

最新更新