Returns the active row. This property is not available at design-time.
ActiveRow off the UltraGrid and the ActiveRow off the DisplayLayout are always the same objects. This code will always execute the if block and write out the text.
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics
Private Sub Button37_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button37.Click
If Me.ultraGrid1.ActiveRow Is Me.ultraGrid1.DisplayLayout.ActiveRow Then
Debug.WriteLine("UltraGrid.ActiveRow and DisplayLayout.ActiveRow are the same.")
Else
Debug.Assert(False, "UltraGrid.ActiveRow can not be different.")
End If
End Sub
'Declaration
Public ReadOnly Property ActiveRow As UltraGridRow
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;
private void button37_Click(object sender, System.EventArgs e)
{
if ( this.ultraGrid1.ActiveRow == this.ultraGrid1.DisplayLayout.ActiveRow )
{
Debug.WriteLine( "UltraGrid.ActiveRow and DisplayLayout.ActiveRow are the same." );
}
else
{
Debug.Assert( false, "UltraGrid.ActiveRow can not be different." );
}
}
'Declaration
Public ReadOnly Property ActiveRow As UltraGridRow
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