|| | |||Browse by category|
How can I change the behavior of the grid when the user clicks into a cell? For example, I want the cells to switch into edit mode as soon as the user clicks anywhere in the cell.
You could call CGXGridParam::SetActivateCellFlags(WORD wFlags) whereas wFlags can be one of:
const WORD GX_CAFOCUS_CLICKINTEXT = 0x01; // (default) const WORD GX_CAFOCUS_CLICKONCELL = 0x02; const WORD GX_CAFOCUS_SETCURRENT = 0x04; const WORD GX_CAFOCUS_DBLCLICKONCELL = 0x08;
Take a look at the class reference for this method. In the specific case, you should call:
Article ID: 415
Last updated: 27 Apr, 2018
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 27 Apr, 2018 by Meltreger B.
Others in this category
Objective Grid: Can CGXRecordInfoWnd and CGXRecordInfoSplitterWnd be used with other grids besides the browser grids?
Objective Grid: How can I programmatically change the record number that is displayed in the record field of the CGXRecordInfoWnd?