Jump to content

Recommended Posts

Posted

Hello,
I'm change background color on DrawColumnCell even

if Pos(string(Column.FieldName),'F_1;F_2;F_3')>0then begin
   Attribs.Color:= clYellow;
  end;

This code override, if move mouse on grid. uniDBGrid hasRowselect:= True; When mouse move on rows, mouse over paint rowselect grayed, But if I changed backgroud' some column, thats backgrounds, not paint via mouse over color. How to do this?

Regards.

Posted

First two colums from left has a DrawColumnCell and changed backround color (sorry for bad selected color :) )

on screenshot, "1-Selected" mouseclicked & grid selected that row. you can see colorof column after third and other. nearly blue color :) . I wanna paint first & second column with selected color too.

"2-Mouse on this row" You can see background color little bit dark gray then normal background color, so flicker when mouse move on rows. But on first and second cell background not change. I wana apply this two efect color on selected & onmouse over flicker efect.

I do not want overide onDrawColumnCell this. I need control on this two parameter (selected & mouser over) so discard my change color code.

I hope this time can translate :)

Sorry for english.

post-4508-0-41245900-1510915709_thumb.png

  • Administrators
Posted

This is default behavior of Ext JS and we couldn't find a work around for it yet.

In ROW selection mode the custom background color is put above all other cell DOM elements. You may switch to CELL selection mode to resolve this.

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...