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

Gets/sets a value which indicates whether headers in the grid will automatically wrap their text and adjust their height, if necessary. Note, this property is not honored if Row Layout mode is being used.


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


This snippet demonstrates how the captions in column headers can automatically be wrapped onto multiple lines if their width exceeds the width of their respective column header.

Visual BasicCopy Code
Private Sub SetupGrid()
   Me.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True
End Sub
C#Copy Code
private void SetupGrid()
	this.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True;

See Also