Pedja Posted February 9, 2016 Posted February 9, 2016 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 Quote
cenzin2 Posted August 3, 2022 Posted August 3, 2022 I have exactly the same situation. How can i tell that the cell being drawn is part of a selected row? Quote
MVakili Posted September 18, 2022 Posted September 18, 2022 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.