Jump to content

Selectedrow color


Pedja

Recommended Posts

Hi,

 

i am using onDrawColumnCell to paint row with different color based on some values:

 

if Grid1.DataSource.DataSet.FieldByName('Fieldname').AsString='Yes' then
   begin
    Attribs.Color:= $00E1FFFF;
   end;
 
It works fine, but if i selected those painted row then is selection color not visible. How can i ignore row painting for the selected rows?
Thanks

post-3442-0-94804700-1455035713_thumb.jpg

post-3442-0-66572000-1455035723_thumb.jpg

Link to comment
Share on other sites

  • 6 years later...
  • 1 month later...
On 2/9/2016 at 8:05 PM, Pedja said:

Hi,

 

i am using onDrawColumnCell to paint row with different color based on some values:

 

if Grid1.DataSource.DataSet.FieldByName('Fieldname').AsString='Yes' then
   begin
    Attribs.Color:= $00E1FFFF;
   end;
 
It works fine, but if i selected those painted row then is selection color not visible. How can i ignore row painting for the selected rows?
Thanks

post-3442-0-94804700-1455035713_thumb.jpg

post-3442-0-66572000-1455035723_thumb.jpg

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...