Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • What is the easiest way to format all fields in a specific row (both rowarea fields and dataarea fields) in bold ?

                                0

                                You should handle the CustomDrawFieldValue and CustomDrawCell events of the PivotGridControl. To set a bold font, please use the following code:

                                [C#]
                                e.Appearance.Font = new Font(e.Appearance.Font, FontStyle.Bold);

                                Please take a look at the Appearance Concepts > Custom Draw help topic.

                                Thank you,
                                Nick

                                0

                                Thank you it's ok. The only problem now is bestfit method on the pivotgrid. Which is the correct event to apply pivotgrid.bestfit after I set bold font in CustomDrawFieldValue and CustomDrawCell events ?
                                Nicola

                                0

                                Nicola,

                                Custom draw code is not taken into account for the best size calculation. You can use the opposite approach: set a bold font to the entire PivotGrid and then reset it to a regular font for all rows but one via the CustomDraw~ events.

                                Thank you,
                                Nick

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners