It never works !!! DataTable.Select() works as a where clause...
I assume SourceTable contains whole data and u don't need to sort it.
DataTable outputTable = SourceTable.Clone();
for(int i=0;i<20;i++)
outputTable.ImportRow(SourceTable.Rows[i]);
outputTable contains top 20 records.
--
Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET
"BillGatesFan" <kl******@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
dr() = datatable.select ("select Top 20 from tblorders")