what is the best way to move columns in the datatable so that it is in alphabetically order

what is the best way to move columns in the datatable so that it is in alphabetically order. Example please
musclejackAsked:
Who is Participating?
 
aprestoCommented:
Sorry musclejack, you've lost me, apologies.

What do you mean moving around, you want to drag and drop them around? Do you not need to sort alphabetically:

>>>what is the best way to move columns in the datatable so that it is in alphabetically order
0
 
aprestoCommented:
is it sql server?
0
 
musclejackAuthor Commented:
c#, datatable
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
aprestoCommented:
0
 
musclejackAuthor Commented:
i mean moving around the columns from the datatable. base on the column names
0
 
musclejackAuthor Commented:
nevermind
found it -
Change Position of Column in DataTable

The new SetOrdinal method allows users to change the position of the column in a DataTable
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.