devextreme datagrid get row values by key code example
Example: devextreme datagrid get selected row keys
var dataGrid = $("#dataGridContainer").dxDataGrid("instance");
var selectedKeys = dataGrid.getSelectedRowKeys();
var selectedData = dataGrid.getSelectedRowsData();