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

Adding Aggregate function programatically

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anwar Arakkal
Top achievements
Rank 1
Anwar Arakkal asked on 24 Jan 2010, 07:56 AM
Hi,

Is it possible to add aggregate function dynamically in to Silverlight grid view?
Can you please send me the sample code. I am able to add group dynamically. but I want to add aggrgate function at the same time

Thanks,
Anwar

1 Answer, 1 is accepted

Sort by
0
Karlkim Suwanmongkol
Top achievements
Rank 1
answered on 25 Jan 2010, 01:57 AM
Hi Anwar,
   Would this Group Aggregates link help?

CountFunction f = new CountFunction(); 
f.Caption = "Entries Count: "
GroupDescriptor countryDescriptor = new GroupDescriptor(); 
countryDescriptor.Member = "Country"
countryDescriptor.SortDirection = ListSortDirection.Ascending; 
countryDescriptor.AggregateFunctions.Add( f ); 
this.radGridView.GroupDescriptors.Add( countryDescriptor ); 

--Karlkim
Tags
GridView
Asked by
Anwar Arakkal
Top achievements
Rank 1
Answers by
Karlkim Suwanmongkol
Top achievements
Rank 1
Share this question
or