バージョン

ParentRow プロパティ (UltraGridRow)

この行の親行 (UltraGridRowインスタンスまたはUltraGridGroupByRowインスタンスの場合がある) を返します。
シンタックス
'宣言
 
Public ReadOnly Property ParentRow As UltraGridRow
public UltraGridRow ParentRow {get;}
使用例
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 );

}
参照