Object Reference > True DBGrid Properties > BackgroundPicture Property |
BackgroundPicture Property
This property sets or returns the background bitmap of a style object.
style.BackgroundPicture= variant
Read/Write at run time and design time.
If a style has no background bitmap, then this property returns a null variant.
You can change a style's background bitmap at design time using the Style Factory property page. Or, you can assign a bitmap to the BackgroundPicture property in code at run time:
TDBGrid1.HeadingStyle.BackgroundPicture = LoadPicture("seaside.bmp")
Note
Use the BackgroundPictureDrawMode property to control how the background bitmap is displayed when the style is applied to an object.