Version

Row Property (UltraGridCell)

Returns the UltraGridRow object associated with the cell. This property is not available at design time. This property is read-only at run time.
Syntax
'Declaration
 
Public ReadOnly Property Row As UltraGridRow
public UltraGridRow Row {get;}
Remarks

The Row property of an object refers to a specific row in the grid as defined by an UltraGridRow object. You use the Row property to access the properties of a specified UltraGridRow object, or to return a reference to the UltraGridRow object that is associated with the current object.

An UltraGridRow object represents a single row in the grid that displays the data from a single record in the underlying data source. The UltraGridRow object is one mechanism used to manage the updating of data records either singly or in batches (the other is the UltraGridCell object). When the user is interacting with the grid, one UltraGridRow object is always the active row, and determines both the input focus of the grid and the position context of the data source to which the grid is bound.

Example
Following code prints out some information about the active cell.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button32_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button32.Click

       ' Check if there is an active cell.
       If Not Me.ultraGrid1.ActiveCell Is Nothing Then
           ' Print out the the column key and the row index of the active cell.
           Debug.WriteLine("ActiveCell's column = " & Me.ultraGrid1.ActiveCell.Column.Key & ", Row Index = " & Me.ultraGrid1.ActiveCell.Row.Index.ToString())
       Else
           Debug.WriteLine("There is no active cell.")
       End If

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

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

	// Check if there is an active cell.
	if ( this.ultraGrid1.ActiveCell != null )
	{
		// Print out the the column key and the row index of the active cell.
		Debug.WriteLine( "ActiveCell's column = " + this.ultraGrid1.ActiveCell.Column.Key + ", Row Index = " + this.ultraGrid1.ActiveCell.Row.Index.ToString( ) );
	}
	else
	{
		Debug.WriteLine( "There is no active cell." );
	}

}
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