Datagridview sortmode

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 ?
sidwelleAsked:
Who is Participating?
 
sidwelleConnect With a Mentor Author Commented:
vb.net from VS 2005
0
 
crumberCommented:
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
 
sidwelleAuthor Commented:
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
 
crumberCommented:
I was assuming that you were using VB Studio web development.  I guess that you are using VB for windows.
Am I correct?
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.