Download UltraWebGrid 3.1 User`s Manual

Transcript
Stop the project.
15. Band appearance properties can also be set in code. Set some font properties of both bands with code
by adding the following to the WebGrid InitializeLayout event:
In Visual Basic:
' set properties of the Customers band
With e.Layout.Bands.FromKey("Customers")
.RowStyle.Font.Bold = True
End With
' set properties of the Orders band
With e.Layout.Bands.FromKey("Orders")
.RowStyle.Font.Italic = True
End With
16. Run the project and observe the font appearance changes made with code: