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
1405
UltraGrid with BindingList and DropDowns
posted

I'm having a bit an issue wrapping my head around this for whatever reason.

I have an UltraGrid with data bound like so: UltraGrid.SetDataBinding( IBindingList<T>) 

Later, I added an UltraCombo (because I like the flexibility of its appearance) but I've run into issues with the ListChanged events not firing properly. I stepped into the UltraGrid_CellChanged event and can see that the value of my grid cell hasn't changed at all, even though its display text has.

My question simply, I suppose - Which object can I bind to a grid column that supports IBindingList and ListChanged events but also has the appearance capabilities of the UltraCombo?

 

Thanks.

Parents
No Data
Reply
  • 48586
    posted

    Hello ,

     

    When you are create a BindingList<T> and you want ListChange event to be fired when you change a property of T class, then you should implement INotifyPropertyChanged Interface to your T class. Aftet that bind this BindingList<T> to the UltraGrid and change the value of some cell, then the ListChange would fire. More about INotifyPropertyChanged Interface you could find here:

    http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx

     

    Also I am attaching a small sample where I have a class Patient, which implements INotifyPropertyChanged Interface and when you change the value of some cell and leave this cell (in order to commit changes) you will get a message from ListChange event.

     

    Please let me know if you have any further questions related to Infragistics.

    WinGridBindingList.zip
Children