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 |
|
Michael Clapp
|
Jul 20, 2007 - 10:07 AM
|
We would like to have a read-only color cell in our Report Grid. With the following code, a disabled down arrow button still appears in the cell. Can we remove it? pCell = m_grid.ReportItemGetCell(pRGC, pRGI, RUNTIME_CLASS(CExtGridCellColor)); ((CExtGridCellColor*)pCell)->SetColor(RGB(255,0,0)); ((CExtGridCellColor*)pCell)->SetMode((CExtGridCellColor::e_Mode_t) 0); pCell->ModifyStyle( __EGCS_READ_ONLY | __EGCS_NO_INPLACE_CONTROL | __EGCPF_NO_BUTTONS);
|
|
Technical Support
|
Jul 21, 2007 - 12:04 PM
|
Any grid cell supports 3 built-in buttons: up-down, drop-down and ellipsis. This is controlled with the following styles: __EGCS_BUTTON_UPDOWN
__EGCS_BUTTON_DROPDOWN
__EGCS_BUTTON_ELLIPSIS You can add/remove these styles using CExtGridCell::ModifyStyle() .
|
|