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