Unable to "completely" remove gradient from RadGridView's GridTableHeaderRowElement

2 posts, 1 answers
  1. Abhay
    Abhay avatar
    11 posts
    Member since:
    Jan 2011

    Posted 27 Jan 2011 Link to this post


    I am using the Visual Style Builder to create the theme for RadGridView.

    I am trying to change the RowFill for GridTableHeaderRowElement with a new Gradient type repository item. I don't want the background to be gradient colored and thus I chose the GradientStyle = Solid. This does paint the background with the color I chose but the table header columns still have gradient color (different from what I selected) left in them.

    I have attached the snapshot of the VSB screen where I did the above.

    As you can see, there is still a tint of gray at the bottom of the header columns that I am not able to remove.

    Can someone help?

  2. Answer
    Nikolay avatar
    1805 posts

    Posted 28 Jan 2011 Link to this post

    Hello Abhay,

    You can find the answer to your question in the support ticket that you have opened for the same topic.

    I will give the answer here as well in case there are others interested in the case:

    The Gradient style that you get comes from the GridHeaderCellElement which is painted over the row. So, in order to get a Solid style, you should set the GradientStyle of the GridHeaderCellElement to Solid as shown on the screenshot.


    the Telerik team


    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top