The Hidden property determines whether an object is visible. Hiding an object may have have effects that go beyond simply removing it from view. For example, hiding a band also hides all the rows in that band. Also, changing the Hidden property of an object affects all instances of that object. For example, a hidden column or row is hidden in all scrolling regions.
The bahavior of Hidden property with Row Filtering functionality has changed in UltaGrid Version 3.0. In previous version the Hidden property of a row returned false if the row was filtered out where as in Version 3.x the Hidden property will return the value it was set to regardless of whether the row is filtered out or not. Instead in Version 3.x IsFilteredOut property is added that indicates whether the row is filtered out or not. HiddenResolved behaves the same and takes into account whether the row is filtered out or not. Note though this only applies when the UltraGridOverride.RowFilterAction is set to HideFilteredOutRows.
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