Jump to content


Photo

Grid de satırın tamamını renklendirme


  • Please log in to reply
2 replies to this topic

#1 mustafa kartal

mustafa kartal

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 08 September 2017 - 01:25 PM

Merhaba

grid de şarta bağlı olarak renklendirme yapmak istiyorum şuan ki örneklerde sadece ilgili kolonun ilgili satırnda tek hücreyi renklendiriyor ben istediğim ise şart uydugunda satırın tamamını renklendirmesi


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3432 posts

Posted 08 September 2017 - 03:58 PM

Merhaba

 

örneğin:

 

UniDBGrid1 -> OnDrawColumnCell ->

procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
  ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
  if UniDBGrid1.DataSource.DataSet.FieldByName('empno').AsInteger = 20 then
    Attribs.Color := clGreen;
end;

  • 0

#3 mustafa kartal

mustafa kartal

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 09 September 2017 - 11:07 AM

 

Merhaba

 

örneğin:

 

UniDBGrid1 -> OnDrawColumnCell ->

procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
  ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
  if UniDBGrid1.DataSource.DataSet.FieldByName('empno').AsInteger = 20 then
    Attribs.Color := clGreen;
end;

Teşekkürler


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users