I mainly use a datagrid for showing data. I aso want to use it for selecting data.
What is the best way to retrieve the primary key from a row in a datagrid selected by the user.

thanks in advance