Click to See Complete Forum and Search --> : How to set a combo box in a datagrid?


February 16th, 2000, 06:41 PM
I know i can set a combo box in a datagrid by using the event "buttonClick".
But how to set it in the datagrid? Thanks for help.

diprima
February 16th, 2000, 09:17 PM
I have recently asked this question and the answer was that Microsoft do not support combo and list into data grid.

However, there are some 3rd party dbgrid that do it, the suggested one was Apex True DBGrid at //www.apexsc.com.

Personally, in my little program I avoided the problem with some string manipulation.

Hope this was of help
ivan

freek
February 29th, 2000, 02:10 PM
I find this very strange, because if you searche for the buttonclick event on msdn they say you have to use this event to integrate a combo box or a data list into the datagrid. And they use list boxes in datagrids all the time ex. the proprety grid in vb.

but you say you have avoided the problem with string manipulation, can you give some more information on how you did this?

thanks

diprima
March 2nd, 2000, 03:53 PM
Well my problem wasn't exactly the same, I used a data control which needed to be bound to a list or a combo box.
I simply transferred the contents of a list into a text box such that the text would still look like a list.

freek
March 3rd, 2000, 12:22 PM
I found some code at www.freevbcode.com/showmessage.Asp?ID=216 at how to place a combo box over
the calling field in the datagrid. And I am know trying to make a sample program using this technique.

I still have one problem: I know how I can drop down the combobox using code, but this doesn't seems to work for a datacombo. So if you know how to do this....


Freek