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
4133
Disable InitializeRow While Update Underlying Data
posted

I am experimenting with using the EventManager to disable the InitializeRow event on the grid while I am changing the underlying dataset for my grid.  I then turn the event back on when I'm finished manipulating the data.  However, it doesn't seem like the rows that changed were queued up so that the InitializeRow event will fire when I turn it back on.  Can anybody confirm this?  Do I have to keep track of the rows that changed myself while this event is suspended?

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    The EventManager prevents the grid from firing the event. It doesn't queue up the events and fire them later. So you would have to keep track of that yourself.

    Or... you could call grid.Rows.Refresh(FireInitializeRow) which would re-fire the InitializeRow event for all rows in the grid.

Children