[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Datagridview sortmode

Posted on 2008-10-13
5
Medium Priority
?
1,401 Views
Last Modified: 2013-11-25
I need to be able to sort a column of a datagridview by the fields 'date' value not 'alpha-numeric' value.

In the properties for that field you have the option to set the 'sortmode' from 'automatic' to 'Programmatic' or 'none'.     Can I substitute my own sort routine here ?
0
Comment
Question by:sidwelle
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:crumber
ID: 22703836
bind the datafield to the date data type from the database and then format it using the gridview.  
This way the data coming across will be in date format, and any auto formatting in the gridview will be using the date value, not alpha.
0
 

Author Comment

by:sidwelle
ID: 22704500
How do I do that ?, the columns are added through the Add/Column editor.  
I don't see an option to bind anywhere.  
Shouldn't it pickup the type through the adapter ?
0
 
LVL 1

Expert Comment

by:crumber
ID: 22707252
I was assuming that you were using VB Studio web development.  I guess that you are using VB for windows.
Am I correct?
0
 

Accepted Solution

by:
sidwelle earned 0 total points
ID: 22707751
vb.net from VS 2005
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

834 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