ColumnA
of DataTable contains 3 type of content:
- Numeric
- Alphanumeric
- Alphabets
ColumnB
of DataTable contains date format "YYYYMMDD".
I need data to be grouped based on 3 content types and then sort by date ascending order.
Example:
ColumnA | ColumnB A123457 | 20171114 B246734 | 20171009 1234544 | 20170808 6789033 | 20171220 ABBCDEE | 20180102 A112233 | 20160202 1212122 | 20171115 NNNNNNN | 20171011
Grouping based on ColumnA
Value and Sorting based on ColumnB
value:
ColumnA | ColumnB 1234544 | 20170808 1212122 | 20171115 6789033 | 20171220 A112233 | 20160202 B246734 | 20171009 A123457 | 20171114 NNNNNNN | 20171011 ABBCDEE | 20180102
What we will be LINQ solution for this?