Version

RowSelectorNumber Property

Returns the number that's going to be displayed in the row selector. Retruns -1 if row selector number style is set to None.
Syntax
'Declaration
 
Public ReadOnly Property RowSelectorNumber As Integer
public int RowSelectorNumber {get;}
Remarks

To display row numbers in the row selectors set the Override's UltraGridOverride.RowSelectorNumberStyle property. Also make sure that row selectors are enabled using the Override's UltraGridOverride.RowSelectors.

Example
The following example shows usage of RowSelectorNumber property.

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


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' Enable row selector number functionality.
        Me.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = RowSelectorNumberStyle.VisibleIndex
        Me.ultraGrid1.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True

        ' Print out the row selector number of the active row.
        Dim row As UltraGridRow = Me.ultraGrid1.ActiveRow
        If Not Nothing Is row Then
            Debug.WriteLine("Active row selector number: " & row.RowSelectorNumber)
        End If
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// Enable row selector number functionality.
			this.ultraGrid1.DisplayLayout.Override.RowSelectorNumberStyle = RowSelectorNumberStyle.VisibleIndex;
			this.ultraGrid1.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True;

			// Print out the row selector number of the active row.
			UltraGridRow row = this.ultraGrid1.ActiveRow;
			if ( null != row )
				Debug.WriteLine( "Active row selector number: " + row.RowSelectorNumber );
		}
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