Grid - get the column values from selected row.

So the grid is displaying data coming from a REST data source. That works.

I have an event listener as so (like the example)…

gridResponse.addEventListener(‘selected-items-changed’, function() {
alert('Selected: ’ + gridResult.selection.selected());
); }

I want to get the values in the row. Cannot see how to do that. Any ideas?

Figured it out.
Where one of the properties is LastName.
alert(gridResponse.items[gridResponse.selection.selected()]
.LastName);