Computing.Net > Forums > Programming > Sort columns in VB 6 datagrid

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Sort columns in VB 6 datagrid

Reply to Message Icon

Name: UH OH
Date: September 20, 2002 at 17:55:58 Pacific
OS: Win 2k
CPU/Ram: 1.3G
Comment:

Would anyone be able to lend me some assistance with an appliction im almost done with but i need some help getting the sorting to work when i add data to my datagrid that consists of 2 columns. I want it so that i can either sort ascending by the first column wich consists of string values or sort ascending by the second column wich is strictly long integers. Im using ADODB to create the datagrid.
Example--- rsdata.AddNew
Any help would be greatly appreciated

Chris



Sponsored Link
Ads by Google

Response Number 1
Name: madman
Date: September 22, 2002 at 19:54:40 Pacific
Reply:

I don't know of any way to sort the datagrid once it is build...best thing would be to have the data that will be shown in the datagrid sequenced prior to AddNew. If the data comes from an indexed table, then set the order at "Set rs" time. Otherwise, you might put the data in an array and bubble sort it. Depends on the volume of data.


0
Reply to Message Icon

Related Posts

See More


VB Problem python



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Sort columns in VB 6 datagrid

Declaring Variables in VB 6.0 www.computing.net/answers/programming/declaring-variables-in-vb-60/9957.html

Function in VB 6 www.computing.net/answers/programming/function-in-vb-6/9626.html

VB 6.0 Write datagrid in 4.0 www.computing.net/answers/programming/vb-60-write-datagrid-in-40/8630.html