Jump to content
uniGUI Discussion Forums
Sign in to follow this  
mustafa kartal

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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;

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×