Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub Button26_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button26.Click
Dim band As UltraGridBand = Me.ultraGrid1.DisplayLayout.Bands(0)
' Set a column's and group's headers' captions to a multi-line text.
band.Columns(0).Header.Caption = "Line 1" & vbCrLf & "Line 2"
' Assuming you have added groups to the band, set first group's header's Caption
' to a multiline text.
band.Groups(0).Header.Caption = "Multiline" & vbCrLf & "Group Header"
' To accomodate the multiline captions, set the ColHeaderLines and
' GroupHeaderLines to 2.
band.ColHeaderLines = 2
band.GroupHeaderLines = 2
End Sub