By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 2,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

View SQL Server 2000 db in VB6 listview

P: 12
gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
Jan 2 '08 #1
Share this Question
Share on Google+
5 Replies


daniel aristidou
100+
P: 491
gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
You will have to use a loop and the list.additem methods

something like

Expand|Select|Wrap|Line Numbers
  1. Dataset.recorset.movefirst
  2. Do while not Dataset.recordset.eof
  3.  
  4. List.additem Dataset.recorset.<feild>
  5. Datset.recordset.movenext
  6. Loop
Thats wht you should base your code on
What project is this since there are rules as to what we can help you with.
Daniel(~_~)
Jan 3 '08 #2

debasisdas
Expert 5K+
P: 8,127
1.Open the conection to sql server
2.Open the recordset as desired.
3.Follow as suggested in the previous post.
Jan 3 '08 #3

P: 12
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
Jan 7 '08 #4

debasisdas
Expert 5K+
P: 8,127
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
listview does not support all those properties directly.
You might need to use some 3rd party control for the same.
Jan 7 '08 #5

QVeen72
Expert 100+
P: 1,445
Hi,

To Alternate the Colours in ListView, You have to use API's (User32.dll, and Kernel32.dll). and loads of Codes in .bas module.
if you still Want, Check This

A Simple way out is to use a "FlexGrid" control, Changing any Property of this grid is quite simple..

Regards
Veena
Jan 7 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.