This is a migrated thread and some comments may be shown as answers.

Changing cell backColor problem

1 Answer 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ismail Raafat
Top achievements
Rank 1
Ismail Raafat asked on 16 Jun 2011, 09:33 AM
hi
i am developing an online trading application using telerik winfroms products and i have a very annoying  scenario;
i am using rad Gridview to represent the marked data, when some updates comes from the server i have to update the data in the grid with this feed and change the cell back color based on that data, if the new value is greater than the old value i have to change the cell back color to green and if the new value is less than the old value i have to change the cell back color to red, The problem is i can't change the cell back Color in any method in my form and when i use the CellFormatting event i can't know the old value to make the compare and i can't store this old value in a global variable because its a muti threading  application and the updates come so fast.
any ideas?
thank you

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 21 Jun 2011, 04:01 PM
Hi Ismail Raafat,

Thank you for contacting us.

There is another way to customize cells appearance. You can modify the look by changing the Style property of GridViewCellInfo. You can read more about that in this blog post. If the proposed solution does not fit your requirements I would kindly ask you to share with us a code snippet that demonstrates your approach.

All the best,
Svett
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Ismail Raafat
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or