Required library edition:
Required library file: dhtmlxgrid.js
Returns id of selected row (list of ids with default delimiter) or null if non row selected
var selectedId=mygrid.getSelectedRowId();
See also: getRowId, getSelectedCellIndex, deleteSelectedRows