'Declaration 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 ); }
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