Is there a way for a right click event to select a row in toolkit datagrid?
I\'m using toolkit context menu which works nicely, but the problem is, only left click i
You can find a solution here.
Basically it goes like this:
private void dg_LoadingRow(object sender, DataGridRowEventArgs e)
{
e.Row.MouseRightButtonDown += new MouseButtonEventHandler(Row_MouseRightButtonDown);
}
void Row_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
dg.SelectedItem = ((sender) as DataGridRow).DataContext;
}