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
2115
Is there a AfterRowChange event?
posted

Currently I'm using the InitializeRow to set the color of the Row. This works fine until the datasource connected with the UltraGrid is changed. When that happens, no InitializeRow is executed. The values in the row change but I don't seem to find a way to detect this. If the values change, then the colors might also be changed.

I've tried AfterRowUpdate but that only gets fired if data goes from the UltraGrid to the Datasource... In my case a Refresh of the data might be done which recycles the existing rows not firing an InitializeRow event.

The colors vary according to a value of a column, so I do need to do it this way.

Thx, Lieven Cardoen

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Lieven ,

    What kind of DataSource are you using? If your data source supports IBindingList and it sends a notification when cell values are modified, then the grid will fire InitializeRow. If not, then the grid will not know anything changes and there is no way the grid can fire an event.

    Since you are saying that the grid display is updating correctly, that seems to indicate that the grid is getting a notification. So InitializeRow should be firing. Are you sure it's not?

    You can manually force InitializeRow to fire by calling grid.Rows.Refresh(FireInitializeRow). But you shouldn't have to do that.

Children