Horje
split a datatable based on number of rows Code Example
split a datatable based on number of rows
 List<DataTable> result = DTHead.AsEnumerable()
            .GroupBy(row => row.Field<int>("MIVID"))
            .Select(g => g.CopyToDataTable())
            .ToList();
split a datatable based on number of rows
DataTable[] splittedtables = tbl.AsEnumerable()
    .Select((row, index) => new { row, index })
    .GroupBy(x => x.index / 12)  // integer division, the fractional part is truncated
    .Select(g => g.Select(x => x.row).CopyToDataTable())
    .ToArray();




Csharp

Related
sum the digits in c Code Example sum the digits in c Code Example
What is the difference between String and string in C#? Code Example What is the difference between String and string in C#? Code Example
what loops are entry controlled c# Code Example what loops are entry controlled c# Code Example
C# max rand Code Example C# max rand Code Example
how to find all role in mysql Code Example how to find all role in mysql Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10