returns the id of the selected row (a list of ids with default delimiter) or null, if there are no selected rows
var selectedId = myGrid.getSelectedRowId();