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
85
How to raise property changed for a custom property
posted

I have sub-classed the ultragrid so that we can add custom functionality.  I've added a property ActiveObject that will allow me to data-bind to the ListObject of the active row.  I've overridden the OnActiveRowChange to change the ActiveObject property.  My problem is that I can't raise the PropertyChanged event without having a propId and as a result I cannot achieve two way binding.  How do I go about raising this event so that I can update my object when the active row changes.

The part I'm stuck on is this:

  OnPropertyChanged(New Infragistics.Win.PropertyChangedEventArgs(New Infragistics.Shared.PropChangeInfo(Me,[*******],Nothing))

Thanks in advance!

Parents
  • 469350
    Offline posted

    Hi,

    You can't use the existing enum for the grid's PropertyIds, but you don't have to. The event args will take any enum value. So you can create your own enumeration and pass in whatever value you want.

Reply Children