June 5th, 2009, 02:01 PM
Making a DataGridView table that is full of ComboBox's... possible? (Y/N)
Here's my vision:
Around 30 ComboBox's (let's say 6 rows and 5 columns) and they are all in a DataGridView, so I can use some of the features of the datagridview.
I saw (accidentally) how it's possible to have checkboxes in a DataGridView, so I'm pretty certain it's possible to put a ComboBox in there (unless I'm totally wrong), but I'm not sure how.
Whoever can answer this is a l33t h8x0r extreme. thanks!
June 6th, 2009, 04:09 AM
Re: Making a DataGridView table that is full of ComboBox's... possible? (Y/N)
I managed to incorporate Combo Boxes in a MFC Grid Control (as written by Chris Maunder) (v2.25).
Here's the relevant code I used:
I hope this helps you somehow.
DDX_GridControl(pDX, IDC_GRID, m_Grid);
CGridCellCombo *pCell = (CGridCellCombo*) m_Grid.GetCell(j,i);
pCell->SetStyle(CBS_DROPDOWN); //CBS_DROPDOWN, CBS_DROPDOWNLIST, CBS_SIMPLE
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!