设置UniDbGrid的整行显示颜色,如果某字段值是我们的控制字段,使用下列判断设置更快捷一点: procedure TUniForm.UniDBGridDrawColumnCell(Sender: TObject; ACol, ARow:
Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
if Column.Field.DataSet.FieldByName('fcontrol').AsString = 'control.color' then
Attribs.Color := control_color
else
Attribs.Color := clWhite; end;
---------------------
作者:德鲁克
来源:CSDN
原文:https://blog.csdn.net/robinlovoy/article/details/80570008
版权声明:本文为博主原创文章,转载请附上博文链接!