Next
Update
Prev
Up
Down

If you set the selectionMode property to singleCell the cell selection mode will be Single Cell. You can navigate the cells with the up, down, left and right keys and with the mouse click. This example demonstrates how to set the current cell when the user clicks the button. Try to click the Up and Down buttons.

...
<DataGrid id="dg1" selectionMode="singleCell" >
...


function selectedUp() {
  ...
  ...
  dataGrid.setSelectedCells([{rowIndex:sArr[0],columnIndex:sArr[1]}]);
}

function selectedDown() {
  ...
  ...
  dataGrid.setSelectedCells([{rowIndex:sArr[0],columnIndex:sArr[1]}]);
}

© 2017 KoolChart. All rights reserved.