How do you disable a DataGridView's keyboard shorcuts?

Posted by fneep on Stack Overflow See other posts from Stack Overflow or by fneep
Published on 2010-04-12T02:20:07Z Indexed on 2010/04/12 2:23 UTC
Read the original article Hit count: 534

I've just noticed that DataGridViews have a default shortcut so that whenever you press "Ctrl + H", the DataGridView's editing control backspaces, and can delete your entire selection within the cell.

This can get quite annoying since I want to open a Replace box whenever Ctrl H is pressed. Is there any way to stop the backspacing while still being able to use it to open the replace box?

I'm running C# 2.0, but I could update my application to 3.5 if the newer C# has a solution.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datagridview