Note: only the current line, not all line; Only change form line color can, need not modify the other colors,
CodePudding user response:
OptionEh - & gt; DghRowHighlight=trueCodePudding user response:
Eldest brother, see, I just change the color of the form line, not to change a whole line color,OptionEh - & gt; DghRowHighlight=true, will highlight the entire line color, do not accord with my request,
CodePudding user response:
Haven't studied, lookCodePudding user response:
No one will be?CodePudding user response:
Set the Canvas. The pen. The color, it is ok to redraw theCodePudding user response:
My former DBGRIDEH can in DELPHI 5, do not know what version of DELPHI 7 is not itCodePudding user response:
DrawColumnCellThe rect cell attributes, with canvas. Pen. Color to move
CodePudding user response:
DBGrid1. DefaultDrawColumnCell (the Rect, DataCol, the Column, the State);With (Sender as TDBGrid). Canvas do//draw the border around the cell
The begin
Pen. Color:=$00 ff0000;//define brush color (blue)
MoveTo (the Rect. Left, the Rect. Bottom);//brush locate
LineTo (the Rect. Right, the Rect. Bottom);
//draw the blue linePen. Color:=$0000 ff00;//define brush color (green)
MoveTo (the Rect. Right, the Rect. Top);//brush locate
LineTo (the Rect. Right, the Rect. Bottom);//draw the green vertical lines
end;
CodePudding user response:
OptionEh - & gt; DghRowHighlight=true this attribute is really good, only to find that todayCodePudding user response:
Shao113112:You said the process is a process of dbgrid bring? How do I didn't find, specific how to do?