|
-
May 3rd, 2012, 04:26 PM
#1
Thread Starter
Member
How to break down a DataTable into groups of rows(ones with same traits under Column
Hi guys,
I have a Datatable with one column of the table being 'PartNum(product part number)'. I used EntriesTable.DefaultView.Sort = "PartNum ASC"
to sort the whole Table, with respect to the information in this column. Now I'm just trying to further sort the table by grouping rows that have same info under that column together and do something to each of such groups. but I'm kinda stuck here.
I'm thinking of creating some sub-DataTables out of the original one and have these sub-tables to hold those rows with same info under "PartNum".
Does anyone have ideas how to do that? maybe with DataReader or DataView , I think??
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|