5,379
社区成员
发帖
与我相关
我的任务
分享
procedure TForm1.cxGrid1DBTableView1Column2GetDisplayText(
Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;
var AText: String);//“数量”列取显示文本
begin
if pos('率', cxGrid1DBTableView1.DataController.Values[ARecord.Index,0])>0 then//如果当前记录中的“项目”列中有“率”字
AText:=Sender.EditValue+'%';//在当前列的值后面附加“%”符号
end;