c# - Silverlight Datagrid select on right click -


Is there a way for a right click event to select a line in the toolkit datagread?

Using Toolkit Context Menu that works well, but the problem is that only the left click rows are able to select, and I'm right click to be able to do this If I want my context menu to work properly

Any help is appreciated

You can find a solution .

Actually it goes like this:

  Private zero dg_LoadingRow (Object Sender, DataGridRowEventArgs e) {e.Row.MouseRightButtonDown + = New MouseButtonEventHandler (Row_MouseRightButtonDown); } Zero Row_MouseRightButtonDown (Object Sender, MouseButtonEventArgs E) {dg.SelectedItem = (DataGridRow as (Sender)) .DataContext; }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -