Board index » delphi » Slowing down the down key repeat in DBGrid

Slowing down the down key repeat in DBGrid

Hi:

I use a DBGrid with over 30 columns, and with code in OnDrawColumnCell.
Moving from one record to another takes noticible time. The problem is
that when I keep the down arrow down for a couple of seconds, then
afterwords the grid scrolls down 7,8 records more. Can this be
prevented?

Thanks!

Jan

 

Re:Slowing down the down key repeat in DBGrid


I would suggest you look into flushing the keyboard buffer when you change
records.

Quote
Jan Aaftink <litka.consult...@wxs.nl> wrote in message

news:37BAA651.1AD3C8F7@wxs.nl...
Hi:

I use a DBGrid with over 30 columns, and with code in OnDrawColumnCell.
Moving from one record to another takes noticible time. The problem is
that when I keep the down arrow down for a couple of seconds, then
afterwords the grid scrolls down 7,8 records more. Can this be
prevented?

Thanks!

Jan

Other Threads