Steven,
The only way I can think of to do this without copying the rows would be
to have a column that has the row number in it. Then, wrap a DataView
around the DataTable and filter for rows where the row number is <= 10.
Other than that, you would have to create a new datatable and copy over
the appropriate rows.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Steven Blair" <st**********@btinternet.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,
I have a DataSet with 30 rows. I pass this DataSet to my reporting
module and this needs the first 10 rows.
Does C# have a way of filtering the DataSet so I can use only the first
10 rows (perhaps using .Select() ) or will I have to create a new
DataSet and pass the rows in one by one?
Thanks in advance.
Steven
*** Sent via Developersdex http://www.developersdex.com ***