Hi,
"Necqui Teja" <Ne*****@nospam.nospam> wrote in message
news:eg**************@TK2MSFTNGP10.phx.gbl...
How can I take a sorted DataView and move it to a new DataTable so that I
can iterate using the foreach loop? I'm not using DataSource/DataGrid in
my application.
You can iterate in the dataview:
foreach( DataRowView row in theView )
dosomethigwith( row)
you can access the row using DataRowView.Row , so if you have a method that
especificaly use a Row you can use
foreach( DataRowView row in theView )
dosomethigwith( row.Row )
In general all list controls (Datagrid, listview, etc ) can handle DataView
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation