Mouse Events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My control takes a certain action when one area is clicked. However, I want
to override this action in the MouseUp or Click Event much like the KeyPress
Event where you can set the KeyEventArg to "handled". How can I do this with
the Mouse click event to indicate that it has been handled and I don't want
the control tp process the click event any further.

For a specific example, I have a DataGrid which gets sorted when the user
clicks on the column header. However, if when the users clicks on the
header, I don't always want to allow sorting. I know I can set the
AllowSorting to False but I want to leave it as true and stop sorting on
certain columns under certain conditions.
 
Back
Top