Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I have made a class where I have used get & set to return the data to main form. But it returns only one row. How can I get back multiple rows and use in a combobox as its list value?
Posted
Comments
Richard MacCutchan 10-Mar-11 4:39am    
Your question is not clear, what do you mean by multiple rows? Perhpas showing some of the code in your class would help explain.
Albin Abel 10-Mar-11 7:32am    
Question not clear. Need of more details.

Without knowing the structure of your class it is difficult to make a recommendation.

It sounds as if you need to implement a Collection of some sort for your class and use that as the DataSource for your Combobox.

On the other hand your class may already contain a collection and it is this that want to access. In that case read Indexed Properties[^] from MSDN, which may 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