'Declaration<FlagsAttribute()> Public Enum EditTriggers Inherits System.Enum
'UsageDim instance As EditTriggers
[Flags()] public enum EditTriggers : System.Enum
'Declaration<FlagsAttribute()> Public Enum EditTriggers Inherits System.Enum
'UsageDim instance As EditTriggers
[Flags()] public enum EditTriggers : System.Enum
| Member | Value | Description |
|---|---|---|
| ActivationGesture | 16 | Cells will enter edit mode when the user performs the appropriate activation gesture for the current cell's editor. |
| BeginEditCommand | 1 | Cells will enter edit mode when the Edit Command (default F2) is sent to the containing DataRow. |
| CellIsCurrent | 8 | A cell will enter edit mode when it becomes current. |
| ClickOnCurrentCell | 2 | The current cell will enter edit mode when it is clicked. |
| None | 0 | No special triggers will cause cells to enter edit mode. |
| RowIsCurrent | 32 | All cells in a row will enter edit mode when the row becomes current. |
| SingleClick | 4 | Cells will enter edit mode when it is clicked. |
The conditions under which cell editors are displayed are determined by the value of the DataGridControl.CellEditorDisplayConditions property, which can be defined for the entire grid or per row. The DataGridControl.EditTriggers and CellEditorDisplayConditions properties work independently of each other. For example, if the EditTriggers property is set to None and the CellEditorDisplayConditions property is set to CellIsCurrent, when a cell becomes current, its editor will be displayed and the content of the cell can be edited when focus is given to the cell editor.
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}"/> </Grid.Resources> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}" EditTriggers="CellIsCurrent"/> </Grid>
System.Object
System.ValueType
System.Enum
Xceed.Wpf.DataGrid.EditTriggers
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.