Luke,
I agree with Dimitre, but wanted to clarify. You can't do this in an ADO.NET
datatable in any practical manner. Moving 300,000 rows to your applcation
server or client to perform a summation is a bad idea. This is a job for a
stored procedure or query against your database. Check out the Pivot
options.
--
Kathleen Dollard
Microsoft MVP
Author "Code Generation in Microsoft .NET"
"luke" <lu*****@yahoo.com> wrote in message
news:87**************************@posting.google.c om...
Hi,
I am very new to xml. I have a datatable I need to group by and was
suggested that xml and xpath might be the way to go. I converted the
datatable to xml but don't know what to do next. Can anyone point me
to the right direction. This is what I am trying to do:
- have datatable (~300k rows and 5 cols)
- need to group by column1(string catagory) and column2(date)
- display the totals by column1 and column2 in datagrid.
Any help is appreciated.
Thanks.