how can i select and highlit entire row in a datagrid?

if i select another row from the datagrid
the previous highlit will be removed.

and how can i fire an event if the row is selected?

pls. do advice. TIA