?
Solved

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

Posted on 2006-04-25
6
Medium Priority
?
209 Views
Last Modified: 2008-01-09
what is the best way to move columns in the datatable so that it is in alphabetically order. Example please
0
Comment
Question by:musclejack
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:apresto
ID: 16535265
is it sql server?
0
 

Author Comment

by:musclejack
ID: 16535285
c#, datatable
0
 
LVL 23

Expert Comment

by:apresto
ID: 16535339
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:musclejack
ID: 16535397
i mean moving around the columns from the datatable. base on the column names
0
 
LVL 23

Accepted Solution

by:
apresto earned 2000 total points
ID: 16535421
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
 

Author Comment

by:musclejack
ID: 16535889
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question