Version

EditorType Property (FieldSettings)

The type for the Infragistics.Windows.Editors.ValueEditor used within a cell
Syntax
'Declaration
 
Public Property EditorType As Type
public Type EditorType {get; set;}
Exceptions
ExceptionDescription
System.ArgumentExceptionAn Argument exception is thrown if the type is not set to a class derived from ValueEditor.
Remarks

The Type must be set to a class derived from Infragistics.Windows.Editors.ValueEditor, otherwise an exception will be thrown.

Refer to the Editors topic in the Developer's Guide for an explanation of editors.

Refer to the Editing Cell Values topic in the Developer's Guide for an explanation of how editing works.

Example
The follow sample demonstrates initializing the EditorType of a specific field's Settings so that it should use a XamCurrencyEditor. The EditAsType would only need to be initialized if the DataType of the Field differs from how the value should be interpretted. For example, if the control was bound to an xml data source where the schema was not defined and the type was intrepretted as string.
<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 
                                
EditorType="{x:Type igEditors:XamCurrencyEditor}" 
                                
EditAsType="{x:Type sys:Decimal}" />
                    
</igDP:Field.Settings>
                
</igDP:Field>
            
</igDP:FieldLayout.Fields>
        
</igDP:FieldLayout>
    
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also