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
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
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.
Summary: I am writing a software program in VB 6.0 that accepts input from a user and stores it to an Access database - both text and numeric. How do I declare the variables for these items. For instance, I ha...
Summary: Hi friends I am making a project in VB 6.0 I have values like -0.004 and 5.98. I need a function which can convert them into (0 and 5 respectively) Plz tell me. I will be very thanful to u. ...
Summary: In VB 6.0, I had write the following script: Set cn = New ADODB.Connection cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" _ & "Data Source=" & App.Path & _ ...