Is it possible to insert DataRow into a DataTable at index 0?

rosscj2533 picture rosscj2533 · Dec 22, 2009 · Viewed 8.6k times · Source

This question answers how to insert a DataColumn at position 0. Is there a way to do the same thing with a DataRow? Or is that impossible? Thanks.

Answer

Doc Brown picture Doc Brown · Dec 22, 2009
DataTable table = //...
table.Rows.InsertAt(row, 0);