I have a UI that allows the user to delete a GroupViewItem from the GroupView control using a context/popup menu. I''d like to select the button that is being deleted when the right mouse click occurs. The following HitTest works but is one button off. (e.g. right click on button three selects button two, click two to select one etc). Any thoughts?
private void groupFolders_MouseDown(object sender, MouseEventArgs e)
AccessibleObject obj = this.groupFolders.AccessibilityObject.HitTest(e.X,e.Y) ;
if (obj != null && obj.Role == AccessibleRole.ListItem)
ADAdministrator Syncfusion Team August 14, 2005 09:44 PM
You could use the GroupView''s PointToItem method for this purpose. Let me know if this meets your requirements. We appreciate your interest in Syncfusion products.