Ticket Q340847
Visible to All Users

ASPxGridView - How to set a background color of columns if ASPxGridView is displayed with a theme

created 14 years ago

I using the following code to set the background color of the header cells
gdvReportData.Styles.Header.BackColor = Drawing.Color.FromName("#E02D1F")
but as shown on the attached graphic, its only showing a line of red, I want to make the whole background of the header cell reddish color…

Comments (1)
DevExpress Support Team 14 years ago

    Hello Dileepa,
    Thank you for your question.
    I see that ASPxGridView has an applied theme (it seems the "Aqua" theme). Some of themes utilize images to display a background color. You can create and assign your own image using the ASPxGridView.Styles.Header.BackgroundImage property. Alternatively, you can deploy and modify the corresponding CSS class of the "Aqua" theme to display a background color instead of the image for column headers.
    If you have any other questions, please contact us at any time.
    Best regards,
    Vladimir

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.