Hi,
we recently bought the latest version of RadControls for Winforms and we are using now Q1 2012 version.
I have a not-so-large data set to display using RadGridView, something like 200 rows and 30 columns. After the initial display I receive very often data udpate messages, that contains not all the data, but only the value to update (and the rowIndex and column name to locate the data to update).
For our business it's crucial to be able to update the displayed value immediately when the update message is received and notify that changing the cell style according to some business rules. (green if new value is bigger, yellow if it's equal or red if it's lower; also i need to change border color for that specified cell)
I'm trying using RadGridView in both bounded and unbounded mode to achieve my goal.
With bounded solution, when a message is received, I update the dataTable value (that is the data sorce) and I change the cell style using cellInfo.Style. In this case grid update seems to be a bit slow.
In unbounded mode I defined a custom column with contains cells of a custom type. I overridden the SetContentCore method and inside this method I recover cellInfo object for that cell and I use it to change the style of the cell. The problem is that when a specified value change for one cell, the entire row blink, since SetContentCore is raised for all elements for that row.
In both cases I use a timer that reset the cell style after a while. (unblink)
Before go furhter with code detail implementation, can you give me some tips about the best way to proceed? What is the best approach in order to achieve fastest data update with blinking?
Also, we need to open many RadGridView at the same time, so memory and CPU usage must be limited for each RadGridView.
Thank you very much in advance for your support.
Regards,
Lorenzo
we recently bought the latest version of RadControls for Winforms and we are using now Q1 2012 version.
I have a not-so-large data set to display using RadGridView, something like 200 rows and 30 columns. After the initial display I receive very often data udpate messages, that contains not all the data, but only the value to update (and the rowIndex and column name to locate the data to update).
For our business it's crucial to be able to update the displayed value immediately when the update message is received and notify that changing the cell style according to some business rules. (green if new value is bigger, yellow if it's equal or red if it's lower; also i need to change border color for that specified cell)
I'm trying using RadGridView in both bounded and unbounded mode to achieve my goal.
With bounded solution, when a message is received, I update the dataTable value (that is the data sorce) and I change the cell style using cellInfo.Style. In this case grid update seems to be a bit slow.
In unbounded mode I defined a custom column with contains cells of a custom type. I overridden the SetContentCore method and inside this method I recover cellInfo object for that cell and I use it to change the style of the cell. The problem is that when a specified value change for one cell, the entire row blink, since SetContentCore is raised for all elements for that row.
In both cases I use a timer that reset the cell style after a while. (unblink)
Before go furhter with code detail implementation, can you give me some tips about the best way to proceed? What is the best approach in order to achieve fastest data update with blinking?
Also, we need to open many RadGridView at the same time, so memory and CPU usage must be limited for each RadGridView.
Thank you very much in advance for your support.
Regards,
Lorenzo