H hljhc Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-13 #1 你好,请问在程序里如何让dbgrid光标所在的当前行的背景色改变
天 天什 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-13 #2 DBGrid.OnDrawColumnCell TDBGrid(Sender).Canvas.Brush.Color := clNavy ; TDBGrid(Sender).Canvas.Font.Color := clRed ; TDBGrid(Sender).Canvas.FillRect ( Rect ) ; TDBGrid(Sender).DefaultDrawColumnCell ( Rect , DataCol , Column , State ) ;
DBGrid.OnDrawColumnCell TDBGrid(Sender).Canvas.Brush.Color := clNavy ; TDBGrid(Sender).Canvas.Font.Color := clRed ; TDBGrid(Sender).Canvas.FillRect ( Rect ) ; TDBGrid(Sender).DefaultDrawColumnCell ( Rect , DataCol , Column , State ) ;
F foolishwolf Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-13 #3 delphi的帮助中就有例子 stringgrid的例子也可参考