UltraGrid - Change Header Properties
' Get the band to hide the headers in.
Dim band As UltraGridBand = Me.ultraGrid1.DisplayLayout.Bands(0)
' You can hide the column headers by setting ColHeadersVisible to false. By
' default, column headers are visible.
band.ColHeadersVisible = False
' You can hide the group headers by setting GroupHeadersVisible to false. By
' default, group headers are visible.
band.GroupHeadersVisible = False
' You can also show the band header which by default is hidden by setting
' the HeaderVisible property to true.
band.HeaderVisible = True
' You can also set the caption of the band header.
band.Header.Caption = "Customers Table"
' You can also set the apperance of the band header using Appearance property
' off the header.
band.Header.Appearance.BackColor = Color.DarkBlue
band.Header.Appearance.ForeColor = Color.LightYellow
' You can use the HeaderPlacement property to specify how headers are displayed.
band.Override.HeaderPlacement = HeaderPlacement.FixedOnTop
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home