Rich,
In version 2.0 is the (much overloaded) method ToTable for that.
http://msdn2.microsoft.com/de-de/library/hw5ayeet.aspx
Otherwise you have to loop
(You dont even need the sort)
http://www.vb-tips.com/default.aspx?...7-d6ad9bebf57f
I hope this helps,
Cor
"Rich" <Rich@discussions.microsoft.com> schreef in bericht
news:3093696F-5CD5-4172-88D0-E94E86AF9B65@microsoft.com...[color=blue]
> Hello,
>
> I am populating a datagridview from a datatable and filtering the number
> of
> rows with a dataview object. Is there a way to retrieve the rows
> displayed
> by the datagridview into a separate datatable without having to loop
> through
> each column in the datagridview? Or is there a way to retrieve the rows
> from
> the original datatable filtered by the dataview into a separate table? I
> only want to copy the rows from the main table that are filtered by the
> dataview. Is there a way to do this without having to loop through the
> entire main datatable? How to do this?
>
> Thanks,
> Rich
>
>[/color]