Tuesday, December 21, 2010

Re-order DataColumns in a DataTable

Here's how to re-order DataColumns in a DataTable. This solves a particular problem in a project I'm currently working with.
Code:
1
datatable.Columns["Col1"].SetOrdinal(1);

0 comments:

Post a Comment