<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>
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.
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.
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.