Dynamic lists and GROUP BY

Posts   
 
    
SQLScott
User
Posts: 2
Joined: 18-Mar-2005
# Posted on: 21-Aug-2006 22:56:08   

I am pulling my hair out trying to get all of this to work yet it will not. I have read a ton of posts on here and looked in the help but to no avail.

Here is my code:

Dim fields As New ResultsetFields(3) fields.DefineField(VoucherDetailFieldIndex.AccountMasterId, 0, "AccountID") Dim gbc As IGroupByCollection = New GroupByCollection gbc.Add(fields(0))

Dim dl As New DataTable Dim dao as new TypedListDAO

The problem is the following:

My fields.DefineField line has the following error: Overload resolution failed because no accessible DefineField can be called with these arguments.

Also, TypedListDAO does not show up in my intellisense.

I have followed the examples both in the forum and in the help but i must be doing something wrong. FYI...using .NET 2.0

Thanks...

Scott

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 22-Aug-2006 03:15:24   

Are you using Adapter or SelfServicing? Instead of using FieldIndexes try using VoucherDetailFields instead.

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 22-Aug-2006 11:33:35   

Yep, he should pass a field and not a field index.