Whenever a user clicks on a listview, entire row is selected.

How can I get at the row number they selected and the text in the rows?