Activated property returns true if this row is the active row. You can get or set the active row using the UltraGrid's UltraGridBase.ActiveRow property.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub Button53_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button53.Click Dim row As UltraGridRow = Me.UltraGrid1.Rows(0) ' IsActiveRow and Activated properties off the UltraGridRow test if the row is the same as ' the UltraGrid.ActiveRow property. So all three of following should give you the same ' result. Debug.WriteLine("Before:") Debug.WriteLine("row.IsActiveRow = " & row.IsActiveRow) Debug.WriteLine("row.Activated = " & row.Activated) Debug.WriteLine("row == UltraGrid.ActiveRow = " & (row Is Me.ultraGrid1.ActiveRow)) ' Toggle the activation. row.Activated = Not row.Activated Debug.WriteLine("After:") Debug.WriteLine("row.IsActiveRow = " & row.IsActiveRow) Debug.WriteLine("row.Activated = " & row.Activated) Debug.WriteLine("row == UltraGrid.ActiveRow = " & (row Is Me.ultraGrid1.ActiveRow)) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button53_Click(object sender, System.EventArgs e) { UltraGridRow row = this.ultraGrid1.Rows[0]; // IsActiveRow and Activated properties off the UltraGridRow test if the row is the same as // the UltraGrid.ActiveRow property. So all three of following should give you the same // result. Debug.WriteLine("Before:"); Debug.WriteLine( "row.IsActiveRow = " + row.IsActiveRow ); Debug.WriteLine( "row.Activated = " + row.Activated ); Debug.WriteLine( "row == UltraGrid.ActiveRow = " + ( row == this.ultraGrid1.ActiveRow ) ); // Toggle the activation. row.Activated = !row.Activated; Debug.WriteLine("After:"); Debug.WriteLine( "row.IsActiveRow = " + row.IsActiveRow ); Debug.WriteLine( "row.Activated = " + row.Activated ); Debug.WriteLine( "row == UltraGrid.ActiveRow = " + ( row == this.ultraGrid1.ActiveRow ) ); }
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