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

How to style columnheader of gridview

5 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 24 Aug 2012, 08:12 AM
Hi,

i have created style for RadGrid , but when i try to group by, at the column header i am seeing black background at column header.
Please check this link for screenshot.
http://s13.postimage.org/6xo35qyc7/groupby.png

""i tried to attach a screenshot but i didn't find the attachment option here""

Thanks in advance,
Srinivas.

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 24 Aug 2012, 08:20 AM
Hi,

I guess you are addressing the GridViewHeaderIndentCell element. Here is a help article for styling the indent cells of RadGridView. Please, refer to it and let us know whether you need any additional help on this.

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ravi
Top achievements
Rank 1
answered on 24 Aug 2012, 08:52 AM
Hi Ivan Ivanov,

Thanks for reply, my problem is solved.  i have need one more help related to RadGridview cell.

please check the attached image.
http://s13.postimage.org/6xo35qyc7/groupby.png

Can you please tell me how can i create style for this part.

Thanks again.
Srinivas.
0
Ivan Ivanov
Telerik team
answered on 24 Aug 2012, 09:05 AM
Hello,

I cannot find an image attached and the link leads to the same image, as in the previous post. Maybe you have missed to modify it?

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ravi
Top achievements
Rank 1
answered on 24 Aug 2012, 09:10 AM
Hi Ivan Ivanov 

Sorry it's my fault. please check this Link.

http://s13.postimage.org/e1a79youv/Cell.png

Thanks Again,
Srinivas.
0
Ivan Ivanov
Telerik team
answered on 24 Aug 2012, 02:01 PM
Hello,

You want to style Column's edit element, am I right? You can use the EditorStyle property like this:

<telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                            Header="Stadium"
                                            DataFormatString="{}{0:N0}">
                    <telerik:GridViewDataColumn.EditorStyle>
                        <Style TargetType="TextBox">
                            <Setter Property="Background" Value="Red" />
                        </Style>
                    </telerik:GridViewDataColumn.EditorStyle>
                </telerik:GridViewDataColumn>


All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or