Hi Mike,
I'm afraid you'll have to inherit from the DataGrid and override its WndProc
to handle the Del key upon WM_KEYDOWN notifications. You can also try
overriding ProcessDialogKey not to deal with raw Win32 API messages but I am
not sure this will help.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Mike" <(E-Mail Removed)> wrote in message
news:00d601c39264$1bf93e50$(E-Mail Removed)...
> Hi,
>
> I am working with the data in the datagrid behind the
> scenes because I have very specific data validation that
> needs to be done before saving to the database.
>
> I am wondering, what event detects when the user
> highlights a row and then hits "Delete" button. I have
> tried the keypress event, but that doesn't work.
>
> Thank you,
>
> Mike