|| | |||Browse by category|
How can I set the caret position in a edit cell?
The following sample code shows you how to set the current cell to a specific cell, make the cell active and position the caret. The code also works if the cell is already active.
|// Position current cell (optional)
CGXEditControl* pControl = (CGXEditControl*) GetCurrentCellControl();
// Make sure this is a CEdit
|// Set Active and position caret
// Refresh will set the focus to the CEdit