Jump to content

Recommended Posts

Posted

Good Morning.
Is there any way for code to simulate pressing a grid action button? The procedure is the one below that I need to simulate pressing the buttonid = 0

procedure TUniVen01u.UniDBGrid2ColumnActionClick (Column: TUniDBGridColumn; ButtonId: Integer);
var
    Request: Integer;
begin
    case ButtonId of
       0:
          begin
              ........
          end;
    end;
end;

Posted
1 hour ago, FlavioMacedo said:

Is there any way for code to simulate pressing a grid action button? The procedure is the one below that I need to simulate pressing the buttonid = 0

Hello,

You can try this approach:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  UniDBGrid1ColumnActionClick(UniDBGrid1.Columns[6], 0);
end;

 

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...