procedure TForm1.Button1Click(Sender: TObject);
var
row: TcxEditorRow;
i,t: Integer;
begin
grid.ClearRows;
Row := TcxEditorRow(Grid.Add(TcxEditorRow));
Row.Properties.Caption := ‘现金‘;
Row.Properties.EditPropertiesClassName := ‘TcxTextEditProperties‘;
row.Properties.Value := 1;
Row := TcxEditorRow(Grid.Add(TcxEditorRow));
Row.Properties.Caption := ‘银联‘;
Row.Properties.EditPropertiesClassName := ‘TcxTextEditProperties‘;
row.Properties.Value := 1;
for i := 0 to grid.Rows.Count -1 do
begin
t:=t+TcxEditorRow(grid.Rows[i]).Properties.Value;
end;
end;
TcxVerticalGrid demo,布布扣,bubuko.com
时间: 2024-10-06 22:21:22