Version

Showing WinGrid’s Caption

You can show the caption of a WinGrid™ by setting the UltraGridLayout’s CaptionVisible property to True. You can also show the grid caption by setting the Text property of the WinGrid to a value.

In Visual Basic:

Imports Infragistics.Win
...
Private Sub Show_WinGrids_Caption_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraGrid1.DisplayLayout.CaptionVisible = DefaultableBoolean.True
	Me.UltraGrid1.Text = "Customer Information"
End Sub

In C#:

using Infragistics.Win;
...
private void Show_WinGrids_Caption_Load(object sender, EventArgs e)
{
	this.ultraGrid1.DisplayLayout.CaptionVisible = DefaultableBoolean.True;
	this.ultraGrid1.Text = "Customer Information";
}

The following snapshot shows WinGrid with its caption visible, and the Text property set to "Customer Information."

show ultragrid's caption