请问高手如何在DBGrid控件中灰化显示一条记录,如不行,有没有其它显示数据库的控件可实现。
解决方案 »
- 散分,以示感恩!第五帖
- delphi连接oracle大家是用何种方式来连?哪种好!
- Delphi开发wow插件的难度有多大?
- 在delphi中调用C++ DLL文件,程序不能运行,请见源码,特急!!!!!在线等!!!
- 关于动态数组问题?
- SQL:access 用可以用LEFT OUTER JOIN吗?
- delphi + foxpro 问题,在线等待
- DBgrid问题:点击dbgrid表的某一列表头,可以使该列变成指定颜色,如何实现?
- 值中秋值,来庆贺下,顺便问个问题,深圳的朋友说下这儿装宽带如何装的?
- 一个入门级问题
- 有关Web App Debugger 的问题,200分求教!
- 如何确定Tmemo的行距
http://expert.csdn.net/Expert/topic/1727/1727167.xml?temp=.4215662
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if (Form1.ADOTable2.FieldByName('id').AsInteger=2) then
begin
DBGrid1.Canvas.Brush.Color:=clGray;
end;
DBGrid1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;