Grid has built-in selection model, which supports single and multiple rows selection mode. You can specify if multiple selection is allowed in
The index of the last selected row is stored in
var index = obj.getSelectionProperty("index");
selection/values property returns an array of all selected rows:
var array = obj.getSelectionProperty("values");
selectionChanged action so you can attach an action handler to process selection event.
Multiple selection is activated if the Ctrl key is pressed during mouse clicks.