Topic: Stange double execution

I have a grid and a few buttons beneath the grid.

Two of the buttons execute [Show Record] (different actions)

If I double click the grid, the proper [Show Record] executes, when I close the show record form and return to my main form the other [Show Record]  executes.  How can I prevent the second [Show Record] button from executing?

Thank you,
Robb

Re: Stange double execution

You can disable this behavior with this script

procedure Form1_OnShow (Sender: string; Action: string);
begin
    Form1.TableGrid1.dbPopupMenu.Items[0].Enabled := False; // to prevent automatically call buttons with action ShowRecord, when user double click on row
end;

procedure Form1_TableGrid1_OnCellDoubleClick (Sender: string; ACol, ARow: Integer);
begin
   Form1.Button1.Click; // Choose manually, which button should be clicked when user double click on row 
end;
Dmitry.

Re: Stange double execution

Perfect.

Robb