The following sample demonstrates how to initialize a field so that it uses a custom EditorStyle. In this example, the field is being set up to use a XamMaskedEditor with a specific mask and a ValueConstraint that ensures that the value entered is as greater than 0.
<igDP:XamDataGrid
DataSource="{Binding Source={StaticResource OrdersDataSource}, XPath=Order}">
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Title" Column="0"/>
<igDP:Field Name="Price" Column="1">
<igDP:Field.Settings>
<igDP:FieldSettings EditAsType="{x:Type sys:Decimal}">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamMaskedEditor}" >
<Setter Property="Mask" Value="{}{currency:6.2}" />
<Setter Property="ValueConstraint">
<Setter.Value>
<!-- Must be greater than 0 -->
<igEditors:ValueConstraint MinExclusive="0" />
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>