Freeman35 Posted November 17, 2017 Share Posted November 17, 2017 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. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 17, 2017 Administrators Share Posted November 17, 2017 Hello, I didn't fully understand your problem. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2017 Share Posted November 17, 2017 Hello, Sorry, can you explain your issue a bit more ?! Better, with screenshots. Best regards, Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted November 17, 2017 Author Share Posted November 17, 2017 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. Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted November 18, 2017 Author Share Posted November 18, 2017 Have any one solution? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 19, 2017 Administrators Share Posted November 19, 2017 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. Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted November 19, 2017 Author Share Posted November 19, 2017 thank you. Quote Link to comment Share on other sites More sharing options...
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.