Silverlight Datagrid select on right click

后端 未结 5 1878
半阙折子戏
半阙折子戏 2021-01-05 16:34

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

5条回答
  •  半阙折子戏
    2021-01-05 17:11

    Thanks good idea. But the with UnloadingRow event could have been more effective had been specified.

    private void dg_UnloadingRow(object sender, System.Windows.Controls.DataGridRowEventArgs e)
    {
        e.Row.MouseRightButtonDown -= Row_MouseRightButtonDown;
    }
    

提交回复
热议问题