Hi there,
In igDP:XamDataGrid.Resources, I added event setter for igDP:DataRecordPresenter, for example, <Style TargetType="{x:Type igDP:DataRecordPresenter}"> <EventSetter Event="PreviewMouseRightButtonDown" Handler="myMouseRightButtonDown" /> </Style>
But why this event doesn't get fired when I right click xamdatagrid? Note, the xamdatagrid has parent-child data.
If I use EventManager.RegisterClassHandler, it works. But since we have different forms with different grids, the registered event will affect all grids. That's why I hope the first method will work.
Thanks for help.
I found PreviewMouseRightButtonDown in EventSetter can trigger event, but MouseLeftButtonDown and MouseDoubleClick cannot. Could you help us?
Thanks.
Hello again,
I could not reproduce this issue in a simple sample using NetAdvantage v11.1.20111.1005 (see attached file). If you can reproduce the issue with my sample as-is, let me know what version you are referencing. Otherwise, please see if there is a way to modify the sample to get the issue to reproduce.
Thanks,
Hi again,
Did you have a chance to test the sample attached to the reply above?