Delay refreshing the grid while resizing columns
When the user resizes the window, I resize the grid and adjust each column (using the obj.setColumnWidth function). However, for each column I resize, each row get rendered so on a 5 col grid, each row gets rerendered 5 times. I want to be able to write something lige this:
obj.suspendRefreshes()
for (i = 0; i < colCount; i++)
obj.setColumnWidth(w[i], indice[i])
obj.refresh()
Is there a way to stop automatic refreshes when I am changing several things so I can issue a final refresh when I am done?
Thanks,
obj.suspendRefreshes()
for (i = 0; i < colCount; i++)
obj.setColumnWidth(w[i], indice[i])
obj.refresh()
Is there a way to stop automatic refreshes when I am changing several things so I can issue a final refresh when I am done?
Thanks,
Nicolas Frias
December 1,