Version

UltraGridState Enumeration

Bit flags that describe the state of the control. For example, if the first cell in the second row is active but not in edit mode bits Row, Cell, and FirstCell will be set.
Syntax
'Declaration
 
Public Enum UltraGridState 
   Inherits System.Enum
public enum UltraGridState : System.Enum 
Members
MemberDescription
AddRowActive row is an add-row.
CanCopyA state that indicates whether multi-cell copy operation can be performed.
CanCutA state that indicates whether multi-cell cut operation can be performed.
CanDeleteCellsA state that indicates whether multi-cell delete (deleting the contents of the cells) operation can be performed.
CanPasteA state that indicates whether multi-cell paste operation can be performed.
CanRedoA state that indicates whether multi-cell redo operation can be performed.
CanUndoA state that indicates whether multi-cell undo operation can be performed.
CellActive Cell not null
CellFirstActive Cell is first cell
CellLastActive Cell is last cell
CellMultilineA state that indicates whether the current cell in edit mode is a multi-line cell.
FilterDroppedDownIf the filter drop down is dropped down.
FilterRowActive row is a filter row.
FirstRowInGridActive row is the fist row in the grid. This differs from RowFirst in that RowFirst only takes into account sibling bands while FirstRowInGrid cosiders the whole grid (all the bands).
GroupByRowA GroupByRow is the active row.
HasDropdownActive Cell can be dropped down
HeaderInEditModeThere is an active header in edit mode
InEditActive Cell is in edit state
IsCheckboxActive Cell has a check box
IsDroppedDownActive Cell is dropped down state
LastRowInGridActive row is the last row in the grid. This differs from Rowlast in that RowLast only takes into account sibling bands while LastRowInGrid cosiders the whole grid (all the bands).
RowActive Row is not null
RowChildActive Row is a child row
RowDirtyIf the current row is dirty.
RowExpandableActive Row is expandable
RowExpandedActive Row is expanded
RowFirstActive Row is the first Row
RowFirstChildActive Row is the first child (in its parent row)
RowLastActive Row is the last Row
RowLastChildActive Row is the last child (in its parent row)
SwapDroppedDownIf the swap drop down is dropped down.
Example
The following code illustrates how to add a custom key/action mapping to the grid that will navigate to the first row in the grid when the grid has focus but is not in edit mode and the users presses the ‘H’ key (unless the ‘alt’ key is also pressed).

Imports Infragistics.Win.UltraWinGrid

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

     Dim newMapping As GridKeyActionMapping

    ' Add a custom key/action mapping to the grid that 
    ' will navigate to the first row in the grid when 
    ' the grid has focus but is not in edit mode 
    ' and the users presses the ‘H’ key (unless the
    ' 'alt’ key is also pressed). 
    newMapping = New GridKeyActionMapping(Keys.H, UltraGridAction.FirstRowInGrid, UltraGridState.InEdit, 0, Infragistics.Win.SpecialKeys.Alt, 0)

    Me.ultraGrid1.KeyActionMappings.Add(newMapping)

    ' Note: The concept applies to UltraCombo controls as
    ' well except that the combo's KeyActionMappings is
    ' a collection of a mapping class, and associated
    ' state and actiion flags, that make sense for a combo
    ' (i.e. ComboKeyActionMapping, UltraComboAction and
    ' UltraComboState.

End Sub
using Infragistics.Win.UltraWinGrid;

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

	this.oleDbDataAdapter1.Fill( this.dataSet11 );

	// Add a custom key/action mapping to the grid that 
	// will navigate to the first row in the grid when 
	// the grid has focus but is not in edit mode 
	// and the users presses the ‘H’ key (unless the
	// 'alt’ key is also pressed). 
	this.ultraGrid1.KeyActionMappings.Add( 
		new GridKeyActionMapping( 
			// the key code
			Keys.H,
			// the action to take
			UltraGridAction.FirstRowInGrid,
			// disallowed state
			UltraGridState.InEdit, 
			// required state (none)
			0, 
			// disallowed special keys
			Infragistics.Win.SpecialKeys.Alt, 
			// required special keys (none)
			0 ) );

	// Note: The concept applies to UltraCombo controls as
	// well except that the combo's KeyActionMappings is
	// a collection of a mapping class, and associated
	// state and actiion flags, that make sense for a combo
	// (i.e. ComboKeyActionMapping, UltraComboAction and
	// UltraComboState.

}
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