Objective Grid: Setting the active cell characteristics

Article ID: 415
Last updated: 27 Apr, 2018
Article ID: 415
Last updated: 27 Apr, 2018
Revision: 3
Views: 1942
Posted: 09 Jan, 2001
by Meltreger B.
Updated: 27 Apr, 2018
by Meltreger B.

Problem

 


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.

 

 


Cause

 


 

 


Action

 


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:

GetParam( )->SetActivateCellFlags(GX_CAFOCUS_CLICKONCELL);

This article was:   Helpful | Not helpful
Report an issue
Article ID: 415
Last updated: 27 Apr, 2018
Revision: 3
Views: 1942
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 27 Apr, 2018 by Meltreger B.

Others in this category