Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i want to draw listbox dynamically, either 1 or 1000 on the form in C#. What should I do?
i am taking data from sql server and filling in the listboxes.
Posted
Comments
Christian Graus 3-Aug-12 2:03am    
What do you mean ? Why do you want to draw dynamically and what do you think that means ? SQL Server is the source of data, it is not relevant to your question
Malli_S 3-Aug-12 5:22am    
What do you mean by 'Draw listbox dynamically' ? Did you mean 'Populate items of listbox dynamically' (fill the list items dynamically.) ?
efkah 3-Aug-12 5:22am    
are we talking about items in a listbox or listboxes? your question can be understood multiple ways: i guess depending of the number of columns you want to add listboxes, or depending on the number of rows you want to add listboxes?
Aditya Mangipudi 3-Aug-12 10:27am    
If you want to dynamically load the data into a listbox, you can point the listbox.datasource to your source like a datatable.
Sandeep Mewara 3-Aug-12 15:07pm    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

1 solution

thanks dudes. i have solve my problem. i accept that my question was so poor
 
Share this answer
 
Comments
lukeer 10-Sep-12 7:45am    
Another thing: Don't post an answer to a comment as solution. Post a reply to the comment instead. That way, the addressee will be informed.

If posting a solution, you should in fact post the solution so that other people may find it useful.

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