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

[Solved] Group Row Data

1 Answer 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chapman Mays
Top achievements
Rank 1
Chapman Mays asked on 02 Oct 2009, 03:33 PM
I have several questions about how to display data on a group row. First, I have a data member in my object that is not displayed in the grid, but can be used to group the elements in the grid using a external button using the 2nd solution found here: Custom Group Row Based On Column.

As in the solution above, I want to display aggregate information only if it is grouped in this way and use the default grouping for all other groups.

  1. Part of the aggregate information I want to display is information from the first row of data because as turns out these would be the same for similarly grouped items. I figured I could use the FirstFunction aggregate with the appropriate source field, but when I run it, it displays the name of the class (like it is calling ToString() on the class instead of the field). How can I display this information correctly?
  2. I don't want to display the default group header when grouped in this way. Since the column doesn't actually exist in the grid, I can't use the GroupHeaderFormatString property. How can remove the default header or possibly use a different column to display a value?
  3. Since I don't have a header, I would like the aggregate information to be displayed left aligned and preferable vertically aligned as well. How is this possible?

I'm using version 2009.2.812.1030 of the controls.

Thanks,

Chapman

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 07 Oct 2009, 11:27 AM
Hello Chapman,

You can use the GroupRowStyle property of RadGridView to define a new style for the GridViewGroupRow. It contains of an expander which header is the place where the aggregate functions get displayed.

All the best,
Stefan Dobrev
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
Chapman Mays
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or