Home > Back-end >  Cxgrid how to use code to trigger buttonedit button events... O great god teach
Cxgrid how to use code to trigger buttonedit button events... O great god teach

Time:09-18

Cxgrid, ah, how to use code to trigger buttonedit button events, give advice or comments, ask the great spirit


If inscribe

CodePudding user response:

 
.
Private
{Private declarations}
Procedure cxGrid1DBTableView1ColumnPropertiesButtonClick (
Sender: TObject; AButtonIndex: Integer);
Public
{Public declarations}
end;

Var
Form1: TForm1;

Implementation

{$R *. DFM}
Procedure TForm1. CxGrid1DBTableView1ColumnPropertiesButtonClick (
Sender: TObject; AButtonIndex: Integer);
The begin
//...
end;

Procedure TForm1. CxButton1Click (Sender: TObject);
The begin
//set as 3 button properties:
CxGrid1DBTableView1. Columns [3]. PropertiesClass:=TcxButtonEditProperties;
//click event:
(cxGrid1DBTableView1. Columns [3]. The Properties as TcxButtonEditProperties). OnButtonClick
:=cxGrid1DBTableView1ColumnPropertiesButtonClick;
end;
.

CodePudding user response:

I mean can call like button BTN. Click event is same,,,
  • Related