public static DataTable FilterRows(DataTable source) { string root = parentID; DataTable result = source.Clone(); string filter = "CategoryID = '" + root + "'"; DataRow[] rows = source.Select(filter); foreach (DataRow row in rows) { result.ImportRow(row); } return result; }
0 Comments:
Post a Comment