procedure TForm_main.DBGridEh1DrawColumnCell(Sender: TObject;

    const Rect: TRect; DataCol: Integer; Column: TColumnEh;

    State: TGridDrawState);

    begin

      if (trim(DataModule1.ADOQuery1.FieldByName('dczt').AsString)='OK') then

      begin

        if datacol=6 then

        begin

          DbGrideh1.Canvas.Brush.Color:=clGradientActiveCaption;

          DbGrideh1.DefaultDrawColumnCell(Rect,datacol,column,state);

        end;

      end;

    end;

相关文章:

  • 2021-07-01
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-02-07
  • 2022-01-30
  • 2022-12-23
猜你喜欢
  • 2021-04-06
  • 2022-12-23
  • 2021-10-22
  • 2021-11-03
  • 2021-09-29
  • 2021-11-12
相关资源
相似解决方案