Splitting a single DataTable into Parent/Child DataTables for Hierarch(weblogs.sqlteam.com)
submitted by
foreach(25) 4 years, 3 months ago
A simple function in C# that takes a single DataTable and creates a related parent DataTable in the same DataSet based on specified parameters. This is useful if you only have a single result set from SQL (or any other data source) and you'd like to break that data up into two separate parent-child DataTables in order to use nested repeaters or any other type of parent-child processing on the data.
|category: ADO.NET
|Views: 47
tags:
ADO.NET Database another
Everyones tags:
Your Tags: