Board index » delphi » using "Enter key" in StringGrid

using "Enter key" in StringGrid

The following should work (not tested).  Put it in the OnKeyPress event for
the stringgrid.

if Key = #13 then
begin
  if Col < ColCount -1 then
    Inc(Col)
  else
  begin
    Col := 0;
    Inc(Row);
  end;

Quote
RC <raymondch...@hkid.com> wrote in message

news:882iu0$f1d2@bornews.borland.com...
Quote
> can anyone tell me how to replace the "TAB" with " enter key" stringgrid

 

Re:using "Enter key" in StringGrid


can anyone tell me how to replace the "TAB" with " enter key" stringgrid

Other Threads