应该是在 GetValue事件
procedure TDM.RMGridReport2GetValue(const ParName: String;
var ParValue: Variant);
begin
if CompareText(ParName, '频道') = 0 then
begin
if MainForm.TotalFrame.ComboBox1.Text = '' then
ParValue := '所有频道 '
else
ParValue := MainForm.TotalFrame.ComboBox1.Text + ' ';
end;
if CompareText(ParName, '经办人') = 0 then
begin
if MainForm.TotalFrame.ComboBox2.Text = '' then
ParValue := '所有人 '
else
ParValue := MainForm.TotalFrame.ComboBox2.Text + ' ';
end;
if CompareText(ParName, '日期') = 0 then
begin
ParValue := '(' + DateToStr(MainForm.TotalFrame.DateTimePicker1.Date) + ' 至 ' + DateToStr(MainForm.TotalFrame.DateTimePicker2.date) + ')' + ' ';
end;
end;