Hi,
What is the difference between
ugrd.Rows.Refresh(RefreshRow.ReloadData)
and
ugrd.Rows.Refresh(RefreshRow.RefreshDisplay)
I can't see the difference
Francois.
With some test I see one difference.
When I use ReloadData, after click on arrow key the same cell keep actif.
If I use RefreshDisplay the actif cell change to depend with arrow a use, if I use right arrow is right cell was active.
I preferred to use RefreshDisplay.
There are other difference ?
Hello Francois,
Please take a look in our online documentation for more information:
- http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v13.1~Infragistics.Win.UltraWinGrid.RefreshRow.html
Let me know if you have any questions.
Regards
Hi Georgi,
Yes I see before.
But the description is very short.
Anyway I use RefreshRow.RefreshDisplay and everything work fine.
I wanted to know in which case you could use the reloadData instead of refreshDisplay, that's why I wanted to know the differences in detail.
For now it was just out of curiosity.
Hi Francois,
To be honest, I'm not entirely sure of the specifics. But I think RefreshDisplay is the most efficient of the three. It just refreshes the display area of the grid and maybe dirties the UIElements so they get regenerated on the next paint.
FireInitializeRow re-fires the InitializeRow event for every row, so it will be a lot slower.
ReloadData forces the cells to re-get the data from the data source, so it's also much slower than RefreshDisplay.
As a general rule, if RefreshDisplay works for you, I'd stick with that one, and only use the other two when you absolutely need to.
Hi Mike,
Thank very much for the answer.
I Appreciate.