I am using xamDataGrid :
I wrote the some code to show a PopUp on Mouse Double Click of grid:
private void lstContactAssociation_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
//Edit Contact Association on mouse Double click.
CompanyViewModel context = this.DataContext as CompanyViewModel;
context.EditContactAssociation();
}
which Shows a PopUp Window for Editing contact.
My Problem is that anywhere i double click on grid it shows the PopUp Window whether I double click on Header of grid or Horizontal scrollBar of grid if record is selected it will show the edit Window while user want it should show the PopUp only when Mouse cursor is on record.
Please anybody can help me in this context.
thanks in advance.
My solution to this issue is noted here:
http://community.infragistics.com/forums/p/7652/96199.aspx#96199
Works perfect for me. I place all those static methods in a static helper class so it's easy to use for multiple grids, once implemented to use it just requires just a one line if statement in every grid mouse double click event handler you want to use it for.
Hi Alex I got one problem.
Mouse Double Click is behaving Surprisingly.
When I do Mouse Double Click on any grid it validate the method of my privious grid and shows the PopUp which it should not show.
Hi Alex,
Thanks,
The link work very fine. I removed grd_MouseDoubleClick event from XAML Part and implemented Event given in Link found working very fine.
Hello,
You should target the DataRecordPresenter, rather than the XamDataGrid itself.
You can use the code snippet in this forum thread :
http://community.infragistics.com/forums/p/26355/96794.aspx#96794
Hope this helps.