我找到原因了,因为我在DBGridEh1里的DBGridEh1DrawColumnCell事件里写了如下代码,所以才不能显示的,那如下代码该如何改才能让DisplayFormat正确的显示格式呢,请高手告知,谢谢!if ifyh(trim(ClientDataSet1bankname.Value),'建设银行','建行') = '1' thenbegin DBGridEh1.canvas.brush.Color := clmoneygreen; DBGridEh1.canvas.Font.Color := clblack; DBGridEh1.canvas.TextRect(Rect, Rect.Left, Rect.Top, vartostr(DBGridEh1.Fields[DataCol].DisplayText));endelsebegin DBGridEh1.canvas.brush.Color := clinfobk; DBGridEh1.canvas.Font.Color := clblack; DBGridEh1.canvas.TextRect(Rect, Rect.Left, Rect.Top, vartostr(DBGridEh1.Fields[DataCol].DisplayText));end;