Click here to Skip to main content
16,017,683 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I am new. and feed up in trying things in windows application.

all i need is..

After clicking a check box. i need to populate something in a listbox and some thing into checklistbox. from different tables in sql.

i have tryed my code which is working partially.I can populate one like listbox.. but not the other checklistbox. but i need how to approach with same event to perform two different SELECT statement to
populate two different things.

a formate of code will be very helpful to generate my hole thing then.

help..

vista
Posted
Comments
cmanderson 19-Oct-10 13:00pm    
You should be able to do them at the same time without a problem. Do you have some code you can share so we can see what you have attempted so far? Also are the two queries completely unrelated? You really should try to pull back the data from your DB in one shot instead of making two separate calls.

1 solution

Set the datasource of one item to the results of the first query, and the datasource of the second item to the second query - should solve your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900