Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Grid Context Menu Event Hanlder - how do I figure out what cell was clicked
posted

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,