Infragistics(R) NetAdvantage(R) Windows Forms
CaptionVisible Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridLayout Class : CaptionVisible Property

Gets/sets whether the grid's caption area will be displayed. By default the caption area will be displayed if the control's Text property is not an empty string.

Syntax

Visual Basic (Declaration) 
Public Property CaptionVisible As Infragistics.Win.DefaultableBoolean
C# 
public Infragistics.Win.DefaultableBoolean CaptionVisible {get; set;}

Example

This snippet demonstrates how the visibility of the grid's caption area can be controlled via the CaptionVisible property on the UltraGridLayout class.

Visual BasicCopy Code
Private Sub Form1_Load(sender As Object, e As System.EventArgs)
   ' Hide the caption.
   '
   Me.ultraGrid1.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False
End Sub
C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{	
   // Hide the caption.
   //
	this.ultraGrid1.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
}

See Also