Get TOP N from DataTable
private DataTable GetTopN(DataTable dt, int RowCount, int Start) { DataTable table = dt.Clone(); for(var i = Start; i <= Start + RowCount; i++) { if( i >= dt.Rows.Count ) break; table.ImportRow(dt.Rows[i]); } return table; }