Donate

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:
1
datatable.Columns["Col1"].SetOrdinal(1);

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.