tags:

views:

27

answers:

1

i am using vb.net and dataset have two table and relation , i query only on the first table but i cant use group by on any filed of the table it give Definition of method 'GroupBy' is not accessible in this context here is the code

 Dim Groups = From n In dataSetTableAsEnumerable _
Group By n.filedName  Into Group
+1  A: 

You need to tell it which thing you're grouping, for example:

 Dim Groups = From n In dataSetTableAsEnumerable _
              Group n By n.filedName  Into Group _
              Select Group

In your case you need Group n By as opposed to just Group By.

Nick Craver
i try it same error
new
@aaa - What type is `dataSetTableAsEnumerable`?
Nick Craver