Hi all

I have a data grid view, and I also have a key up event which watches
only for the F5 key. It works fine, except that after the initial
press, the datagridview ignores subsequent key up events until I move
the selection to another cell.

Its very odd, because i set SuppressKeyPress and Handled to true, and I
get the same behavior if the Form is handling the event instead.

Any ideas?

Thanks
Andy

Re: DataGridView loses key up events? by Andy

Andy
Wed Jul 19 09:03:52 CDT 2006

I found a 'solution'. If i call DataGridView.Focus(), everything works
as expected.


Andy wrote:
> Hi all
>
> I have a data grid view, and I also have a key up event which watches
> only for the F5 key. It works fine, except that after the initial
> press, the datagridview ignores subsequent key up events until I move
> the selection to another cell.
>
> Its very odd, because i set SuppressKeyPress and Handled to true, and I
> get the same behavior if the Form is handling the event instead.
>
> Any ideas?
>
> Thanks
> Andy