How To Reorder Or Rearrange DataColumns In A DataTable Using C#
Here's how to re-order DataColumns in a DataTable. This solves a particular problem in a project I'm currently working with.
Code:
Code:
1 | datatable.Columns["Col1"].SetOrdinal(1); |
Comments
Post a Comment