Version

Please note that this control has been retired and is now obsolete to the XamDataGrid control, and as such, we recommend migrating to that control. It will not be receiving any new features, bug fixes, or support going forward. For help or questions on migrating your codebase to the XamDataGrid, please contact support.

xamGrid Editors Always in Edit Mode

In some cases, users may need fields in the xamGrid control that are always in edit mode so no additional keystrokes or interactions are required to change their content.

The always in edit mode feature provides quick editing for three column types in the xamGrid control:

In order to have editors always in the edit mode, set the CustomDisplayEditableColumn property’s EditorDisplayBehavior to “Always”.

The table below explains the property and lists its settings.

Property Type Description Possible Values

This property defines the behavior and display of the editor in the editable columns.

Default

Always

EditMode

Property Value Description

EditorDisplayBehavior

Default

The default behavior.

  • If the xamGrid editing feature is not enabled: The editor is not enabled.

If the xamGrid editing feature is enabled:

The editor behavior is defined by the xamGrid editing settings.

Always

The editor is always in edit mode, accessible and visible regardless if the xamGrid editing feature is enabled or not.

EditMode

Code Example

Example description

The code below demonstrates how to configure an editor to be always in edit mode:

In XAML:

<ig:XamGrid x:Name="dataGrid" AutoGenerateColumns="False">
    <ig:XamGrid.Columns>
        <ig:DateTimeColumn Key="dateColumn" EditorDisplayBehavior="Always"/>
        <!-- Add more columns here -->
    </ig:XamGrid.Columns>
</ig:XamGrid>

In Visual Basic:

TryCast(dataGrid.Columns.DataColumns("dateColumn"),CustomDisplayEditableColumn).EditorDisplayBehavior=EditorDisplayBehaviors.Always

In C#:

(dataGrid.Columns.DataColumns["dateColumn"] as CustomDisplayEditableColumn).EditorDisplayBehavior=EditorDisplayBehaviors.Always;

Following are some other topics you may find useful.