psImage - cCJGridColumn
Specifies the filename of a bitmap image or icon to display in the column header
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psImage
| Access Type | Syntax |
|---|---|
| Read Access: | Get psImage to StringVariable |
| Write Access: | Set psImage to StringVariable/Value |
Description
The image type is determined by the file extension in the passed image name: .bmp, .ico, .jpg, .png, .gif are all supported.
Set psImage to "Stop.bmp" // display a bitmap in the header
Set the peHeaderAlignment property to change the alignment of the header image or icon.
Set peHeaderAlignment to xtpIconAlignmentRight // right align the bitmap
If the column's header is not wide enough to display the image/icon, then no image will be displayed.
In order to display a header section, the grid object's pbShowHeader property must be set True.
Default is "".
Cell Display Formatting
If you want to dynamically change the icon of a grid column (and other cell display formatting), do so in OnSetDisplayMetrics using ComItemIcon.