EhLib中DBGridEh单元格内容为0不显示的方法
若想在DBGridEh的某列中隐藏为0的数据,在该列的OnGetCellParams事件中进行判断处理。
procedure TfrmMain.DBGridEh3Columns7GetCellParams(Sender: TObject;
EditMode: Boolean; Params: TColCellParamsEh);
begin
if Params.Text='0.00' then
Params.Text:='';
end;