Disable keystroke in datagrid

Dunamis

[H]Lurker Supreme[/H]
Joined
Jun 30, 2004
Messages
2,301
Anyone knows how to disable certain keystroke, in my case Shift-Spacebar, so it doesn't select the whole row in a datagrid?

I've tried handling DataGridTextbox keydown event, and even overriding the PreProcessMessage function, nothing works...

This is the datagrid in vb net winapp btw.
 
Get some Javascript code on the Html-side to disable any button presses you want. Then, attach the Javascript methods to the DataGrid items during the server-side creation of the DataGrid items.

Google-ing some info on "javascript", "disabling keys", and "attaching in code behind" should get you on the path toward one solution that has worked for me in the past.

... And if anyone else has other methods to suggest, then I'd be interested in reading those, too :)
 
gotta love those late-night posts ... sorry for the confusion :)
 
Back
Top