Link to home
Start Free TrialLog in
Avatar of jych
jych

asked on

VB5.0: Sorting in a List View control

Hi, I have got a list view control in a form.  It has about 6 columns.  All coulmns contain either a "number" , a "date" (mmm dd yyyy), or a "string".  My problem is that when I click on a column to sort that column, it treats its contents as strings and sorts it accordingly.  For example, for a number coulmn, it puts all numbers starting with a 1 first, then the 2 etc.  For my dates column, instead of going from January to December, it sorts from April to September.  How can I force my list view control to treat each column differently and then sort accordingly.

A quick response would be greatly appreciated.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Juilette
Juilette

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jych
jych

ASKER

Thanks a bunch