This is a migrated thread and some comments may be shown as answers.

Hierarchical Grid Caption BackColor

1 Answer 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Szymon
Top achievements
Rank 1
Szymon asked on 13 Sep 2013, 12:05 PM
Hi!
I have a problem with setting backcolor of child grid's caption.
Screen shows exactly ma problem.
I would like that "SapFieldFilters" look like "SapField". (Different backcolor). I hope my goal is clear. ;)

How to achieve this?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Sep 2013, 07:41 AM
Hello Szymon,

Thank you for your contacting Telerik Support.

In order to achieve your goal, it is appropriate to use the RowFormatting event where you can customize the color of the TableElements:
this.radGridView1.RowFormatting+=radGridView1_RowFormatting;

private void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
    e.RowElement.TableElement.BackColor = Color.Gray;
}

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Szymon
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or