ehlib的斑马线是用代码完成的。 在OnDrawColumnCell事件中加入: if ado.RecNo mod 2 = 1 then dg.Canvas.Brush.Color := $EFEFEF else dg.Canvas.Brush.Color := $FFFFFF; If ((State = [gdSelected]) or (State=[gdSelected, gdFocused])) then If Not dg.SelectedRows.CurrentRowSelected then dg.Canvas.Brush.Color:=clTeal; dg.DefaultDrawColumnCell(Rect, DataCol, Column, State);
ehlib的斑马线是用代码完成的。
在OnDrawColumnCell事件中加入: if ado.RecNo mod 2 = 1 then
dg.Canvas.Brush.Color := $EFEFEF
else
dg.Canvas.Brush.Color := $FFFFFF;
If ((State = [gdSelected]) or (State=[gdSelected, gdFocused])) then
If Not dg.SelectedRows.CurrentRowSelected then
dg.Canvas.Brush.Color:=clTeal;
dg.DefaultDrawColumnCell(Rect, DataCol, Column, State);