Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi to all,

i have a combobox in a datagrid..

i need to add items to the combobox at run time
Posted

1 solution

This is WinForms, right?

Instead of data binding you might then take a look at the VirtualMode property of the DataGridView. This makes things a bit more complicated, as the control now fires several different events whenever it needs to set up a new row, fill in values and the like. The upside is, that you have all the control you will ever get when processing those events.

I suggest you search the MSDN for DataGridViews and the virtual mode. Or perhaps there even is an article here.
 
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