Split Tables into multiple Tables using linq in asp.net & C#
|
var splittedTables = ResultDataSet.AsEnumerable()
.Select((row, index) => new { row, index })
.GroupBy(x => x.index / records)
.Select(g => g.Select(x => x.row).CopyToDataTable())
.ToArray();
Split Tables into multiple Tables using linq in asp.net & C#
Reviewed by Vikas Kumar Singh
on
November 30, 2017
Rating:
No comments: