Hi,
is there a way of putting a combobox inside a datagrid in vb6? i have a datagrid with 10 columns. I would like 2 of the columns to be comboboxes if possible. i would like these populated by a different table. Is this possible?
Rude
combo box in datagridputting a combobox into a datagrid
Page 1 of 1
2 Replies - 10658 Views - Last Post: 02 August 2008 - 02:50 PM
Replies To: combo box in datagrid
#2
Re: combo box in datagrid
Posted 02 August 2008 - 10:43 AM
You can't put a combobox directly into the datagrid control. However most developers can make it look like it is by placing a listbox control over the top of the datagrid control and position it so that it sits right over one of the cells.
So give that a try and remember to keep the listbox on top of the datagrid at all times. You can use the "Buttonclick" event of the datagrid to set the visibility of the listbox and make it appear to the user that the column is a combobox.
You have to use a bit of smoke and mirrors on this but it is the way to do it.
Enjoy!
"At DIC we be datagrid controlling code ninjas... sit datagrid sit! Good datagrid!"
So give that a try and remember to keep the listbox on top of the datagrid at all times. You can use the "Buttonclick" event of the datagrid to set the visibility of the listbox and make it appear to the user that the column is a combobox.
You have to use a bit of smoke and mirrors on this but it is the way to do it.
Enjoy!
"At DIC we be datagrid controlling code ninjas... sit datagrid sit! Good datagrid!"
#3
Re: combo box in datagrid
Posted 02 August 2008 - 02:50 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|