Recently I needed GROUP BY feature applied to a DataSet in VB.NET. I found the following article Implement a DataSet GROUP BY Helper Class in Visual C# .NET on MSDN, which was very useful.
Nipun Tomar helped me converting C# code to VB.NET, which is attached in this article. This is what CreateGroupByTable method looks like. See the attached source code for more details.
Implementing Group By in a DataSet in VB.NET
Using ADO RecordSet in ADO.NET
Thank you for great class!But why average (avg) operator is missed?
many thanks
Hi Mahesh,I got it from InsertGroupByInto. Its working fine.Thank you.
Dear Mahesh,I'd tried to use your DatasetHelper. Called CreateGroupByTable by passing table name, Datatable and field which datatable to be group by but it returns me only datatable with column name which i'd passed for groupby and without data.Please clarify ...Thank you for providing such usefull article.