Next
Update
Prev
Up
Down

If you set the selectionMode property to singleRow the row selection mode will be Single Row. You can navigate the rows with the up and down keys and with the mouse click. This example demonstrates how to set the current row when the user clicks the button. Try to click the Up and Down buttons.

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

function selectedUp() {
  ...
  ...
  dataGrid.setSelectedIndices(sArr);
}

function selectedDown() {
  ...
  ...
  dataGrid.setSelectedIndices(sArr);
}

© 2017 KoolChart. All rights reserved.