|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Evgueni Kolossov
|
Apr 19, 2011 - 7:32 AM
|
InitColumnComboBox(long nColNo, long nRowNo, std::vector<std::string> & vItems)
{
ASSERT_VALID( this );
ASSERT_VALID( &m_wndGrid );
CExtGridCellComboBox * pCellComboBox =
STATIC_DOWNCAST(
CExtGridCellComboBox,
m_wndGrid.GridCellGet(
nColNo,
nRowNo,
0,
0,
RUNTIME_CLASS(CExtGridCellComboBox)
)
);
pCellComboBox;
CExtGridCellComboBox * pCellComboBox0 =
STATIC_DOWNCAST(
CExtGridCellComboBox,
m_wndGrid.GridCellGet( nColNo, nRowNo )
);
pCellComboBox0->SetEnumMode( true );
for (unsigned int i=0; i < vItems.size(); i++)
{
CString strItem(vItems[i].c_str());
pCellComboBox0->AddString(strItem);
}
pCellComboBox0->SetCurSel(nSelItem);
pCellComboBox0->ModifyStyle( __EGCS_NO_INPLACE_CONTROL );
pCellComboBox0->ModifyStyle( __EGCS_BUTTON_DROPDOWN ); Without __EGCS_NO_INPLACE_CONTROL combo box is not working at all, with it combo box woks on click cell but not on click dropdown button
|
|
Technical Support
|
Apr 20, 2011 - 1:18 PM
|
We cannot confirm this. The problem with combo box grid cells may depend on grid initialization code. Could you send us a small possible test project demonstrating this problem?
|
|