<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>
We recommend that you use the xamDataGrid control instead of the xamGrid control. The xamGrid is being planned for retirement over the next few years and will not receive any new features. We will continue to provide support and critical bug fixes for the xamGrid during this time. 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.