回复 楼主 zhr822
1、在GRID的init事件中设置Column的DynamicForeColor属性程序代码:
PROCEDURE Grid1.Init FOR EACH oColumn IN this.Columns oColumn.DynamicForeColor = [IIF(ALLTRIM(]+oColumn.ControlSource+[)=="正",0xFF,0xFF0000)] ENDFOR
2、GRID没有AddListItem方法,可以操作GRID数据源的表记录(行)和字段(列)