Datagridview Selection Change

M

Michel Lapointe

Hello,

I would like to know if there is an event for the Datagridview control
that is trigger before the selection change and is cancelable.

I'm currently using the SelectionChanged event (using Full Row Select),
but this event is trigger only after the selection changed is completed and
therefore is non cancelable unless you keep the previous selection in a
variable and rechange the selection, which is painful.

I've try many other event like click and Row/Column change to see if any
was cancelable or trigger before the selectionchanged but have not find any.

So if anyone know a clean way to prevent a selection changed, please let
me know.

BTW this is using VS2005 and .NET 2.0

Thank

ML
 

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