I use multiple xtragrids on a form and want to use a single context menu strip with a delete functions on these grids.I would like to handle the click event of the context menu:
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
GridView view = sender as GridView;
{
}
}
tried this code,but for some reason i can not get the data from sender.Any chance of knowing which grid the menu was clicked on so i could delete the row from the clicked grid?