Mouse Events

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top