Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> GroupBy with LLBLGen data source.
 

Pages: 1
LLBLGen Pro Runtime Framework
GroupBy with LLBLGen data source.
Page:1/1 

  Print all messages in this thread  
Poster Message
Ian
User



Location:
Hertfordshire, UK
Joined on:
01-Apr-2005 16:37:36
Posted:
511 posts
# Posted on: 03-Apr-2013 20:01:15.  
When using the LLBLGen data source and adding a 'GroupBy' collection, how do I specify aggregate functions to apply to fields?
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8109 posts
# Posted on: 04-Apr-2013 08:02:48.  
You apply the expression to the fields itself, and that depends what is what you are using, normally it would be a DynamicList or TypedList. But if you are using LLBLGenProDataSource that means you want it for databinding, so the LLBLGenProDataSource and the Grid know the structure in advance, and that maybe won't work because your final projection will be different when you do the PerformSelect. So in this case I would go for doing a DynamicList and bind it directly to the grid in the code behind.

(Edit)
If you are using a TypedList you could specify the Aggregate function in LLBLGen Designer, then just add the Grouper at your PerformSelect.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.