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

GridRow Style when groupped

2 Answers 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 02 Sep 2009, 10:26 AM
Hi,

I'm providing a RowStyle and an AlternateRowStyle to GridView. Every thing works as expected except when user groups the row by columns. In this scenario, the DataRow Styles are using the default styles, not those  provided. Is there any way to get the Data Rows (not the Group Rows) using the provided styles when groupped.

Thanks 

2 Answers, 1 is accepted

Sort by
0
Daní
Top achievements
Rank 1
answered on 02 Sep 2009, 10:41 AM
Excuse me,

I think I didn't describe accurately the problem. Style are working well, also when grouping (I've added a couple of attached behaviors and are working fine in both cases). The problem is only about row back colors. When no group is present, rows are taking background color from the custom RowStyle and Alternate Style. When grouping, Data Row background are not using the provided values in styles, but they are white for RowStyle and Orange (SelectionBackGround in OfficeBlack Theme) for AlternateRowStyle.
0
Kalin Milanov
Telerik team
answered on 07 Sep 2009, 06:26 AM
Hi DanĂ­,

I have prepared a small sample for using red and blue rows for alternation. When grouping the rows persist their alternate colors. In that sense I cannot reproduce your error. Is this helpful or am I missing something?

Sincerely yours,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Daní
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Kalin Milanov
Telerik team
Share this question
or