Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select dbgrid row by click
#3
Hello,
thank you very mutch that work very well
Thank's a lot.

do you knwon if it's possible to change row color on row select ?

Thank's a lot for your help
best regards

hello,

here the solution that work well for information in future

procedure TIWFormModifTache.IWDBGridListeTachesRenderCell(ACell: TIWGridCell;
  const ARow, AColumn: Integer);
begin

          // -1 is Footer Row
  if ARow = -1 then
  begin
    ACell.BGColor := clSilver;
    if AColumn = 0 then
    begin
      ACell.Font.Color := clRed;
      ACell.Text := IntToStr(IWDBGridListeTaches.RecordCount);
    end;
  end
  else if IWDBGridListeTaches.RowIsCurrent then
  begin
    ACell.BGColor := clYellow;
  end;
end;
Reply


Messages In This Thread
How to select dbgrid row by click - by softdev85 - 08-07-2020, 01:51 PM
RE: How to select dbgrid row by click - by softdev85 - 08-12-2020, 04:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)