Customizing the Display for Each Cell
Cell-level display attributes are set using the OnSetDisplayMetrics event. This event is called every time a cell is painted, and it can be used to:
- Modify the value being displayed
- Customize colors, fonts, and alignment
- Place images within a cell
The OnComSetDisplayMetrics method passes the following parameters:
- The row number of the row being painted
- The value to be shown
- A bound COM object (
cCJReportRecordItemMetrics)
You can use this object's COM methods to change colors, change fonts, or place an icon/image in the cell.
For further information, refer to OnSetDisplayMetrics.