DevExpress-Examples / winforms-pivot-change-the-field-value-header-appearance-backcolor

This example handles the CustomDrawFieldValue event to fill the header's color.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WinForms Pivot Grid - Change the Field Value Header Background

This example handles the CustomDrawFieldValue event to fill the header's color.

screenshot

Files to Review

Form1.cs (VB: Form1.vb)

Example Overview

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 the Painter object's DrawObject() method.

Documentation

Custom Draw

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example handles the CustomDrawFieldValue event to fill the header's color.

License:Other


Languages

Language:C# 51.7%Language:Visual Basic .NET 48.3%