public static DataTable CopyTableRows(
DataTable source, int startIndex, int endIndex )
{
DataTable result = source.Clone();
for (int i = startIndex; i <= endIndex && i < source.Rows.Count; i++)
{
result.ImportRow( source.Rows[i] );
}
return result;
}
0 Comments:
Post a Comment