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

Alternating Row Color disappears when adding group descriptors in code

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick Baggett
Top achievements
Rank 2
Patrick Baggett asked on 18 Jul 2012, 06:23 PM
I'm having an issue with the alternate row colors disappearing after adding groupdescriptors in code.

example:
GroupDescriptor myDescriptor1= new GroupDescriptor();
myDescriptor1.GroupNames.Add("site", ListSortDirection.Ascending);
myDescriptor1.GroupNames.Add("batch", ListSortDirection.Ascending);
myDescriptor1.Aggregates.Add("count(counter)");
myDescriptor1.Format = "Site Number, Batch {1}      {2} Records(s)";
 
GroupDescriptor myDescriptor2= new GroupDescriptor();
myDescriptor2.GroupNames.Add("type", ListSortDirection.Ascending);
 
myGridView.MasterTemplate.AutoExpandGroups = true;
myGridView.GroupDescriptors.Add(myDescriptor1);
myGridView.MasterTemplate.AutoExpandGroups = false;
myGridView.GroupDescriptors.Add(myDescriptor2);
 
myGridView.EnableFiltering = true;
myGridView.EnableAlternatingRowColor = true;
myGridView.MasterTemplate.EnableAlternatingRowColor = true;

When I group my data (drag\drop column) while form is running, the alternating row colors are not affected.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 23 Jul 2012, 11:35 AM
Hi Patrick,

Thank you for contacting us. 

I am not able to reproduce the issue using your code and the latest public release of RadControls for WinForms - Q2 2012 (2012.2.608). Please, could you confirm that you experience the described issue when using this version? If this is true, please send us your application and describe the exact steps to reproduce it. This will help us to understand the issue and ensure that it will be addressed. 

I am looking forward to your reply.

Regards,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Patrick Baggett
Top achievements
Rank 2
Answers by
Jack
Telerik team
Share this question
or