Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am running a window based program in which i add a combo box in a grid
but i don't know how to add items in it


plz ............help
Posted
Comments
[no name] 20-Dec-12 3:48am    
code ??

1 solution

Hi,

There are two ways, Either you can add items at design items. Select Items property and add in collection. Or if you want to populate value from database the get a datatable and set the datasource= Dtatatable. And set Display member and Value Member to it.


RKS
 
Share this answer
 
Comments
ashwani.pandita 20-Dec-12 6:56am    
i did both of it but still din't get it
Rahul K Singh 21-Dec-12 0:17am    
It seems you are clearing you combobox after load... can u provide the code so that i can see the problem.

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