I needed to refresh object values in grid frequently and fast, so I was using property grid's Update method.
However, I have noticed that this becomes slower and slower each time the method is called. For example, this code simulates gradual slow down:
// Assign selected object
PGMain.SelectedObject = MyObject;
// Takes 618 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 1649 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 2739 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 3730 ms
for (var x = 0; x < 100; x++) PGMain.Update();
Has this bug been noticed before?
Are there any resolutions to this issue?
Comments: ** Comment from web user: BoucherS **
However, I have noticed that this becomes slower and slower each time the method is called. For example, this code simulates gradual slow down:
// Assign selected object
PGMain.SelectedObject = MyObject;
// Takes 618 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 1649 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 2739 ms
for (var x = 0; x < 100; x++) PGMain.Update();
// Takes 3730 ms
for (var x = 0; x < 100; x++) PGMain.Update();
Has this bug been noticed before?
Are there any resolutions to this issue?
Comments: ** Comment from web user: BoucherS **
Hi,
Can you submit a sample with the bug ?
If the PropertyGrid.SelectedObject is a Button, and I start the updates ( as you suggested), there is no slow down ; each 100 calls to Update takes around 1 second.