Objective Grid: Changing cell types

Article ID: 291
Last updated: 11 Jun, 2018
Article ID: 291
Last updated: 11 Jun, 2018
Revision: 3
Views: 2427
Posted: 09 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


How do I change the cell type for individual cells?


Cause



Action


Use CGXGridCore::SetStyleRange() and CGXStyle::SetControl() to change the cell type for one or more cells.

Example:

// Apply a checkbox to cell
SetStyleRange(CGXRange(nRow, nCol), CGXStyle()
.SetControl(GX_IDS_CTRL_CHECKBOX3D)
.SetChoiceList(_T("Checkbox")));

This article was:   Helpful | Not helpful
Report an issue
Article ID: 291
Last updated: 11 Jun, 2018
Revision: 3
Views: 2427
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category