|| | |||Browse by category|
When I have selected a range of cells, I expect the selection to clear when I move the active cell without keeping the [Shift] key down. How can I make Objective Grid clear the selection when I move the active cell?
You could override OnMovedCurrentCell( ) as follows.
|void CGridSampleView::OnMovedCurrentCell( ROWCOL nRow, ROWCOL nCol )
|BOOL bShift = GetKeyState(VK_SHIFT) & 0x8000;
if (!IsSelectingCells() && !bShift)
|CGXGridCore::OnMovedCurrentCell( nRow, nCol );|