Hi,
I have attached an event handler to an XamGrid, when the user clicks on one of the options I want to figure out if the mouse was over a cell and if so which cell.
<ig:XamGrid> <ig:ContextMenuService.Manager> <ig:ContextMenuManager > <ig:ContextMenuManager.ContextMenu> <ig:XamContextMenu> <ig:XamMenuItem Header="Item 1" Click="XamMenuItem_Click" /> </ig:XamContextMenu> </ig:ContextMenuManager.ContextMenu> </ig:ContextMenuManager> </ig:ContextMenuService.Manager> </ig:XamGrid>
In the event handler :
private void XamMenuItem_Click(object sender, EventArgs e) { }
How can I figure out if the click was above a cell?
Thanks,
Hello yashikal,
In the example provided shows how to get it's cell after right clicking and opening the context menu: http://blogs.infragistics.com/blogs/devin_rader/archive/2011/04/15/extending-xamgrid-with-a-right-click-context-menu.aspx.
Code sample is not downloadable. Could you please let us know what is correct location to download the sample.
Do you have any other questions on this matter?
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support