How to prevent pagedown while space bar key press
Hi,
I am having a .Net grid with Check Box Editor, i want to check / uncheck while pressing on space bar in a row, now i can't able to do that, because of when the space bar pressed grid automatically scroll down.
How can solve this issue.
Thanks & Regards
Sasee G
1
-
Hello,
Use the following code to prevent grid from scrolling:
grid.KeyDown += delegate(object sender, KeyEventArgs args)
{
if(args.KeyCode == Keys.Space)
{
args.Handled = true;
}
};Best regards,
Dapfor
0
Please sign in to leave a comment.
Comments
1 comment