Convert DataRowCollection to DataRow[]

Jeff picture Jeff · Oct 22, 2008 · Viewed 45.4k times · Source

What's the best performing way to convert a DataRowCollection instance to a DataRow[]?

Answer

Ely picture Ely · Oct 22, 2008
DataRow[] rows = dt.Select();

Assuming you still have access to the datatable.