Hi,
I bind XamDataGrid to BindingList<MyType> collection, where MyType has a public property ID which is decimal.
When ID presented in ID field in the grid,'$' sign appears before the value.
How can I change it?
Thank you
All this works only if I AutogenerateColumns=false.
In my case AutoGenerateColumns is true , hence I cannot Apply this style at column level in the xaml since i don't know the column until runtime.
Please suggest.
Thanks.
Solution (for the benefit of others) is like the following then:
xmlns:igDP="http://infragistics.com/DataPresenter"xmlns:igEditors="http://infragistics.com/Editors"
<Style x:Key="numericEditorStyle" TargetType="{x:Type igEditors:XamNumericEditor}"> <Setter Property="Mask" Value="nn.nn" /></Style>
<igDP:Field Name="myFieldName" > <igDP:Field.Settings> <igDP:FieldSettings EditorStyle="{StaticResource numericEditorStyle}"/> </igDP:Field.Settings></igDP:Field>
XamDataGrid.FieldSettings will affect the FieldSettings on all of the fields. If you want to do this on one field only, you have to set that on the specific field's Settings object.
Hi, I have the same problem with the $
EditAsType, EditorType or EditorStyle are available under igDP:XamDataGrid.FieldSettings
However if I set EditAsType to decimal, then all the fields are affected
if I set DataType under igDP:Field then nothing is displayed in the grid (the rows are there, but values are empty or invisible)
What should I do?
Thanks Alex