Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Stop unbound cell from refreshing row
posted

Hi,

I have a grid that has both bound and unbound columns.  The bound columns are bound to an object whos properties are constantly changing in realtime. Because of this, we only update the grid every second by calling Grid.Rows.Refresh(RefreshRow.ReloadData, true, false) so that every row will update at the same time and there is only one paint ( as opposed to the multiple paints with refreshing invidiviual rows AND summaries, which will just refresh the viewable gird area anyway ).  The problem is, we also have unbound columns that have values that are changing constantly.  These unbound cells refresh their row after you set a value to them.  I would like to turn off this refresh if possible to reduce the number of paints per row. 

I have SuspendedRowSynchronization, but that only seems to work with bound columns.  Is what I am trying to do possible?

Thanks,

-Steve

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Steve, 

    I don't think you can stop the invalidations from occurring. But you can stop the grid from painting using BeginUpdate/EndUpdate.You should really use a BeginUpdate/EndUpdate block surrounding the Suspend/ResumeRowSynchronization block, anyway. The WinGrid Performance Guide has some more info on this. 

Children
No Data