Version

ParentRow Property (UltraGridRow)

Returns this row's parent row which could be an UltraGridRow instance or an UltraGridGroupByRow instance.
Syntax
'Declaration
 
Public ReadOnly Property ParentRow As UltraGridRow
public UltraGridRow ParentRow {get;}
Example
Following code illustrates how HiddenResolved property works. It takes into account various other factors besides what Hidden property is set to to determine whether a row is hidden or not. For example, if an ancestor of a row is collapsed or hidden, then the row would be hidden and HiddenResolved will return true regardless of the value of the row's Hidden property.

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

   Private Sub Button67_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button67.Click

       ' Get the first child row of the first row in the UltraGrid.
       Dim childRow As UltraGridRow = Me.ultraGrid1.Rows(0).GetChild(Infragistics.Win.UltraWinGrid.ChildRow.First)

       ' Ensure the Hidden property is set to false which it should be by default
       ' but just in case.
       childRow.Hidden = False

       ' Collapse the parent row.
       childRow.ParentRow.Expanded = False

       ' Write out the Hidden and HiddenResolved properties. Hidden should be false
       ' just like we set it to above, however HiddenResolved should be true since
       ' its parent row is collapsed.
       Debug.WriteLine("childRow.Hidden		 = " & childRow.Hidden)
       Debug.WriteLine("childRow.HiddenResolved = " & childRow.HiddenResolved)

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

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

	// Get the first child row of the first row in the UltraGrid.
	UltraGridRow childRow = this.ultraGrid1.Rows[0].GetChild( Infragistics.Win.UltraWinGrid.ChildRow.First );
	
	// Ensure the Hidden property is set to false which it should be by default
	// but just in case.
	childRow.Hidden = false;

	// Collapse the parent row.
	childRow.ParentRow.Expanded = false;

	// Write out the Hidden and HiddenResolved properties. Hidden should be false
	// just like we set it to above, however HiddenResolved should be true since
	// its parent row is collapsed.
	Debug.WriteLine( "childRow.Hidden		  = " + childRow.Hidden );
	Debug.WriteLine( "childRow.HiddenResolved = " + childRow.HiddenResolved );

}
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