Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 23:56

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 03 Jul 2019, 14:50 
Offline

Joined: 26 Jan 2016, 09:46
Posts: 56
Hi,

I spotted a change in version 9.3.
The property OddRowColor or function GetCellParams with this code doesn't work.

Code:
if DBEchan.SumList.RecNo mod 2 = 1 then
      Background := $00CEF4FF
  else
      Background := clWindow;
  if MemTableEhEchantillonETAT_ECH.AsString='EF' then
    AFont.Color:=clGreen
  else if MemTableEhEchantillonETAT_ECH.AsString='EE' then
    AFont.Color:=clRed
  else if MemTableEhEchantillonETAT_ECH.AsString='EC' then
    AFont.Color:=clBlue ;


In version 9.0 :
Image

In version 9.3 :
Image


Thank you,


Top
 Profile  
 
PostPosted: 04 Jul 2019, 12:57 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello ISOAR

We can't reproduce the problem on the simple Demo project.

Can you create Demo project the reproduce the problem?

Code:
procedure TForm1.DBGridEh1GetCellParams(Sender: TObject; Column: TColumnEh;
  AFont: TFont; var Background: TColor; State: TGridDrawState);
begin
  if DBGridEh1.SumList.RecNo mod 2 = 1 then
      Background := $00CEF4FF
  else
      Background := clWindow;

  if MemTableEh1Continent.AsString = 'North America' then
    AFont.Color := clGreen;
end;


Attachments:
sshot-43.png
sshot-43.png [ 31.86 KiB | Viewed 1765 times ]
Prj.zip [2.75 KiB]
Downloaded 154 times

_________________
Best regards
EhLib Support Team
Top
 Profile  
 
PostPosted: 11 Jul 2019, 15:35 
Offline

Joined: 26 Jan 2016, 09:46
Posts: 56
Hi,

I found !
It doesn't work when...

Code:
SumList.VirtualRecords = True



Thanks,

ISOAR


Top
 Profile  
 
PostPosted: 19 Jul 2019, 11:00 
Offline

Joined: 26 Jan 2016, 09:46
Posts: 56
Hi,

Did you see the problem on your side?
Edit : We need to use TDbGridEh with TDataSource + TMemTableEh + TDataSetDriverEh + TADOQuery to show the problem.

Thank you,

ISOAR


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group