This example handles the CustomDrawFieldValue event to fill the header's color.
Handle the PivotGridControl.CustomDrawFieldValue event to change the header's back color. You can customize fields headers in two ways:
- To modify the appearance of the field header, use the e.Appearance property to get the appearance object for the painted element and change its background color.
- To drow field headers manually, use the e.Painter property to get the Painter object and implement the default element painting mechanism. Pass the
PivotHeaderObjectInfoArgs
object (the e.Info property) to thePainter
object'sDrawObject()
method.
- Pivot Grid for WinForms - Highlight Field Headers when they are Filtered
- Pivot Grid for WinForms - Customize Cells
- Pivot Grid for WinForms - Draw a Custom Element when a User Hovering Over Field Value with a Mouse
(you will be redirected to DevExpress.com to submit your response)