-
I am trying include a drop down combo box in a grid. How can I do that ? I want the users to select from a pre-defined list of choice when they move to a certain column in the grid . This needs to be the case for every row on the grid. Any suggestions ?
-
Hi,
I've done something like this but I use special DropDown and Grid components (Sheridan software) so this is how I did this but I don't know if it can apply to your case :
In the InitColumnsProps event of the grid I told him to
bind a dropdown control on one of it's specific rows like this :
grdLecteur.Columns("BaudRate").DropDownHwnd = ddBaudRates.hWnd
The grdLecteur is my grid and the ddBaudrates is the dropdown.
Hope it helps...
-
Depending on your grid your can select the Style in the properties. You can either add during the design time or add during the run-time from a recordset or what ever.
-
I use Apex True DBGrid for all my grid programming. It's a great vb component that I use as a basis for many applications. Of course it also support dropdown lists. I suggest you download an evaluation copy from http://www.apexsc.com and see for yourself. It takes away a lot of the pain in grid programming.