본문 바로가기
공부방/Delphi

[델파이] 퀀텀그리드 짝수열 색상변경하기

by 래채 2016. 3. 10.

이벤트 : OnCustomDrawCell


if not ( AViewInfo.Selected ) then

  begin

    if ( Odd( AViewInfo.GridRecord.Index ) ) then

      ACanvas.Brush.Color := $00F4F4F4

    else

      ACanvas.Brush.Color := clWhite;

  end;