BUG : HOW TO change the rows color "on fly"?

Talk about programming tricks and examples

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

kasumovic
Expert
Expert
Posts: 87
Joined: Sep 7th, '10, 22:38

BUG : HOW TO change the rows color "on fly"?

Postby kasumovic » Jul 3rd, '16, 16:28

viewtopic.php?f=33&t=3295

Your "How , to..." dont work any more


i try it with way 2. but if i set for some row background color it overwrites with original value

i datagrid with my customers and if my customer has field "order_count" < 5 then it should get background color "yellow"

Can you please show how can i do this ?

administrator
Site Admin
Site Admin
Posts: 5990
Joined: Jan 7th, '09, 23:18
Contact:

Re: BUG : HOW TO change the rows color "on fly"?

Postby administrator » Jul 4th, '16, 08:57

What exactly doesn't work? Explain please in more details.

kasumovic
Expert
Expert
Posts: 87
Joined: Sep 7th, '10, 22:38

Re: BUG : HOW TO change the rows color "on fly"?

Postby kasumovic » Jul 4th, '16, 10:53

Hi,

i had problem , that if i have move mouse over this "colored" row , it resets to his default color.

in meantime i have figured out

Code: Select all

$dgrid->AllowHighlighting(false);

i must set Highlighting row to false , and 2.Way is working without problems


Return to “Programming Tricks”