Hi,
I am using Telerik for Winforms version 2012.3.1017.40. I am using a RadGridView control to display some data.
The following is always true:
- First columns is a date
- All other columns are numeric
- I do not know at design time how many other columns there will be
- The data is at regular intervals (e.g. each row is a 2 minute step)
I am trying to achieve the following functionality:
For each cell value cell:
Determine value
Determine Previous Value
If difference greater than 5:
backcolour = green
else if difference less than -5:
backcolour = red
The 'previous value' cannot necessarily look at the previous row, I do not know what custom sorting the user will have done. Rather the previous value should be taken from the row at the previous point in time (according to the first column(date)).
I could achieve this by querying the underlying datasource (a DataTable) on the CellFormatting event, but can't help wandering if there is an easier way!
Thanks for any assistance.
I am using Telerik for Winforms version 2012.3.1017.40. I am using a RadGridView control to display some data.
The following is always true:
- First columns is a date
- All other columns are numeric
- I do not know at design time how many other columns there will be
- The data is at regular intervals (e.g. each row is a 2 minute step)
I am trying to achieve the following functionality:
For each cell value cell:
Determine value
Determine Previous Value
If difference greater than 5:
backcolour = green
else if difference less than -5:
backcolour = red
The 'previous value' cannot necessarily look at the previous row, I do not know what custom sorting the user will have done. Rather the previous value should be taken from the row at the previous point in time (according to the first column(date)).
I could achieve this by querying the underlying datasource (a DataTable) on the CellFormatting event, but can't help wandering if there is an easier way!
Thanks for any assistance.