Hello,
I have a hierarchical grid with about 8000 rows. Based on user interaction I have to update values of specific cell, which I do by looping through the selected rows. There is a conditional formatting on the specific cell which changes the background depending on the value.
My problem is the following ; if I use the following statement it takes too long :
foreach (GridViewRowInfo row in this.radGridView1.SelectedRows) { row.Cells["MY_CELL"].Value = "newValue"; }Now if I use DeferRefresh() the speed is drastically improved, but the grid scrolls back all the way to the top when it is done :
using (this.radGridView1.DeferRefresh()) { foreach (GridViewRowInfo row in this.radGridView1.SelectedRows) { row.Cells["MY_CELL"].Value = "newValue"; } }I don't know if it is normal behavior, or if there is a way to avoid scrolling back all the way to the top AND keeping the same run time I have with DeferRefresh().
EDIT : I also tried using BeginUpdate() and EndUpdate() which result in the same scrolling behavior.
Thank you for your help !
- OS Information : Windows XP x64 (version 2003) SP2
- Telerik : RadControls for WinForms 2010.3 10.1109
- Microsoft Visual Studio 2008
- .NET 3.5