Version

CellClickAction Property (UltraGridOverride)

Returns or sets a value that indicates what will occur when a cell is clicked.
Syntax
'Declaration
 
Public Property CellClickAction As CellClickAction
public CellClickAction CellClickAction {get; set;}
Remarks

The CellClickAction property specifies what will occur when the user navigates through the grid by clicking on cells in the band or the grid controlled by the specified override. You can choose whether cells that are clicked will put the cell into edit mode or select the cell or its row. Depending on your application, you may want to enable the user to edit any cell just by clicking on it, or you may want to require a separate action to trigger cell editing, such as double-clicking or a keystroke combination. Similarly, you can choose whether cells should be individually selectable, or if selecting the row is a sufficient response to clicking on a cell.

Example
Following code sets the CellClickAction property on the layout's override and the band's override.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button34_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button34.Click

      ' CellClickAction indicates the action taken by the UltraGrid when the user clicks
      ' on a cell. By default, the UltraGrid goes into edit mode.

      ' Set the CellClickAction on the layout's Override to RowSelect. With RowSelect,
      ' when the user clicks on a cell, the associated row gets selected.
      Me.UltraGrid1.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect

      ' You can override that grid-wide setting for a particular band by setting it on the
      ' override of that band.
      Me.UltraGrid1.DisplayLayout.Bands(0).Override.CellClickAction = CellClickAction.CellSelect

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button34_Click(object sender, System.EventArgs e)
{

	// CellClickAction indicates the action taken by the UltraGrid when the user clicks
	// on a cell. By default, the UltraGrid goes into edit mode.

	// Set the CellClickAction on the layout's Override to RowSelect. With RowSelect,
	// when the user clicks on a cell, the associated row gets selected.
	this.ultraGrid1.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;

	// You can override that grid-wide setting for a particular band by setting it on the
	// override of that band.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.CellClickAction = CellClickAction.CellSelect;

}
Requirements

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