我在DataGrid1的onCustomDrawCell事件里写了这个代码
if TDataGridColumn(AColumn).FieldName= 'repice' then
begin
if TDataGridColumn(AColumn).ColumnDef.Field.DataSet.
FieldByName('repice').Asstring.trim = '0' then
AFont.Color := Business.System.Graphics.clRed
end ;
时,运行的时候会出现如下图的错误,请问是哪里出错了!!