Version

Hidden Property (UltraGridColumn)

Determines whether the object will be displayed. This property is not available at design-time.
Syntax
'Declaration
 
Public Property Hidden As Boolean
public bool Hidden {get; set;}
Remarks

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.

There may be instances where the Hidden property cannot be changed. For example, you cannot hide the currently active rowscrollregion or colscrollregion. If you attempt to set the Hidden property of the active rowscrollregion to True, an error will occur.

This property is ignored for chaptered columns; that is, columns whose DataType property is set to 136 (DataTypeChapter).

Example
Following code shows you how to hide a whole band and individual columns.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button12_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button12.Click

      ' You can hide individual columns by setting the hidden property of the column.
      ' You can also hide a whole band.

      ' This hides CustomerID column in second band.
      Me.ultraGrid1.DisplayLayout.Bands(1).Columns("CustomerID").Hidden = True

      ' This hides the third band (all of its descendant bands would be hidden
      ' as well).
      Me.ultraGrid1.DisplayLayout.Bands(2).Hidden = True

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

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

	// You can hide individual columns by setting the hidden property of the column.
	// You can also hide a whole band.

	// This hides CustomerID column in second band.
	this.ultraGrid1.DisplayLayout.Bands[1].Columns["CustomerID"].Hidden = true;

	// This hides the third band (all of its descendant bands would be hidden
	// as well).
	this.ultraGrid1.DisplayLayout.Bands[2].Hidden = true;

}
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