Hello everyone,
I'm trying to group my gridView by two columns named "Category" and "SubCategory". I'm using the following code:
GroupDescriptor descriptor = new GroupDescriptor();
descriptor.GroupNames.Add("Cateogry", ListSortDirection.Ascending);
descriptor.GroupNames.Add("SubCateogry", ListSortDirection.Ascending);
descriptor.Format = "{0}: {1}";
this.radGridView1.GroupDescriptors.Add(descriptor);
The text of the header of the grouping is like this:
Category, SubCateogory: "Value of Category", "Value of SubCategory".
What I want to do is to format the descriptor so as the output would be:
Category: "Value of Category", SubCateogory:"Value of SubCategory"
I tried to achieve this in many different ways, using expressions too, but I didn't manage anything.
Is it possible to do this using the format property or any other way?
A snapshot follows.
![]()
Thank you in Advance
Georgios
I'm trying to group my gridView by two columns named "Category" and "SubCategory". I'm using the following code:
GroupDescriptor descriptor = new GroupDescriptor();
descriptor.GroupNames.Add("Cateogry", ListSortDirection.Ascending);
descriptor.GroupNames.Add("SubCateogry", ListSortDirection.Ascending);
descriptor.Format = "{0}: {1}";
this.radGridView1.GroupDescriptors.Add(descriptor);
The text of the header of the grouping is like this:
Category, SubCateogory: "Value of Category", "Value of SubCategory".
What I want to do is to format the descriptor so as the output would be:
Category: "Value of Category", SubCateogory:"Value of SubCategory"
I tried to achieve this in many different ways, using expressions too, but I didn't manage anything.
Is it possible to do this using the format property or any other way?
A snapshot follows.
Thank you in Advance
Georgios