Home Forums WinForms controls Xceed Grid for WinForms How to detect (right) click in column header Reply To: How to detect (right) click in column header

User (Old forums)
Member
Post count: 23064

I’ve had success casting EventArgs to MouseEventArgs in the <b>Click</b> event handler to obtain the status of the mouse button. For example:

if (((MouseEventArgs)e.)Button == MouseButton.Right)
{
// handle right-click
}

Imported from legacy forums. Posted by camera (had 3388 views)