FlavioMacedo Posted July 22, 2020 Posted July 22, 2020 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; Quote
Sherzod Posted July 22, 2020 Posted July 22, 2020 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; 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.