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
270
Reference breaks when WinGrid column is renamed.
posted

Hello,

I have an UltraWinGrid bound to an UltraDataSource with one UltraDataColumn with a key of "Age".

I have an UltraCalcManager on the form as well.

I set the UltraDataColumn key to "Age2" (when the user renames the column).

I add an unbound column to the grid and set it's formula to [Age2] and it displays #REF

I set it's formula to [Age] and it displays ages.

The UltraCalcManager isn't picking up on the fact that the key has changed.  Is there any way to tell it to update it's references?  I'd like to avoid deleting the column and re-adding it.

Thanks for the help!

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    Are you changing the key of the column at Design-time or run-time?

    What version of the controls are you using?

    When you change the name of a reference, like a column, it's up to the control that was changed to report this to the UltraCalcManager. The grid will do this automatically if you change the key of a column.

    I suppose it's possible that the grid is failing to notify the CalcManager when a bound column's Key is changed on the DataSource, but that seems unlikely. And even if that were the case, the CalcManager does not persist the keys for it's references, so if you changed the name of the column at design-time, it would work fine when you ran the application or closed and re-opened the form designer.

Children