Disable Navigation In Datagrid by Arrow Keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seeMohsin
    New Member
    • Jul 2007
    • 3

    Disable Navigation In Datagrid by Arrow Keys

    Hi All,
    I am using datagrid control in my window application. I am designing the grid by a table and table style to add extra controls in the cells like button and drop down.
    Now, I have everything ok, But it want to disable the navigation in the datagrid cells by arrow keys. I dont want to change the cell by the arrows key as the Tab key does.
    Is there anybody to help me out.
    Thnx in advance.
    Mos
  • ezzsakr
    New Member
    • Jan 2013
    • 1

    #2
    Code:
    procedure TForm1.DBGrid1KeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
    Key:=0;
    
    end;
    Last edited by Rabbit; Jan 16 '13, 09:44 PM. Reason: Please use code tags when posting code.

    Comment

    Working...