CellClickAction Property

Gets/sets the action that results from the end user clicking on a cell.
Public Property CellClickAction As CellClickAction
public CellClickAction CellClickAction {get; set;}

When CellClickAction is set to 'EditCell', clicking onto a cell activates the cell and immediately enters edit mode on the cell. Setting the property to 'EditCellSelectText' results in the same behavior as 'EditCell' except that the contents of the cell are selected after edit mode is entered. When set to 'ActivateCell', the cell is activated but not automatically placed into edit mode. When set to 'SelectNodeOnly', no cell is activated or placed into edit mode, but rather the node is activated and optionally selected (depending on the value of the SelectionType property).

Note: The CellClickAction property is only applicable to nodes which display columns; nodes that do not display cells behave as if the property were set to 'SelectNode'

Also note that the CellClickAction property applies exclusively to mouse activity, and does not prevent the end user from accomplishing the same result by using the keyboard. For example, when CellClickAction is set to 'ActivateOnly', entering edit mode via the keyboard is not disallowed; edit mode can still be entered by pressing F2.

The following code sample demonstrates how to use the CellClickAction property to configure the UltraTree such that clicking on a cell causes the cell to enter edit mode:

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinTree

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.ultraTree1.Override.CellClickAction = CellClickAction.EditCell
        Me.ultraTree1.ColumnSettings.AllowCellEdit = AllowCellEdit.Full
        Me.ultraTree1.ColumnSettings.TabNavigation = TabNavigation.NextCell
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinTree;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
			this.ultraTree1.Override.CellClickAction = CellClickAction.EditCell;
			this.ultraTree1.ColumnSettings.AllowCellEdit = AllowCellEdit.Full;
			this.ultraTree1.ColumnSettings.TabNavigation = TabNavigation.NextCell;

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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