Can cxgrid horizontal merger, cell everybody to help! Such as the A1, B1 merge two cells
CodePudding user response:
1) cxGridDBTableViewColumn1. Options. CellMerging:=true
2) write the code
Procedure TfrmYFCOPR01A. CxGrid1DBBandedTableView1PAB01CompareRowValuesForCellMerging (
Sender: TcxGridColumn; ARow1: TcxGridDataRow;
AProperties1: TcxCustomEditProperties; Const AValue1: Variant;
ARow2: TcxGridDataRow; AProperties2: TcxCustomEditProperties;
Const AValue2: Variant; Var AAreEqual: Boolean);
The begin
Inherited;
If (ARow1. Values. [0]=ARow2 Values [0]) AND (ARow1. Values. [1]=ARow2 Values [1]), then the
AAreEqual:=True
The else
AAreEqual:=False;
end;
CodePudding user response: