views:

157

answers:

1

Hi

Here is my problem:

I have DataGridView. It's source is set to the BindingList of my business objects. Business object implement INotifyPropertyChanged interface. Each time the business object changes DataGridView fires several SelectionChanged events. When I add/remove objects to the DataSource SelectionChanged events are fired too.

I want to use this event to update my view, but it looks horrible with so many events.

Can anyone help please?

Or maybe someone can help me with master-details scenario with DataGridView when binding to the list of business objects?

A: 

Thanks for your comment. I've made a little "investigation" and found out that BindingSource.PositionChanged event fits my scenario perfectly. It is a bit painful to implement master/details scenario with the WinForms' data binding after trying WPF...

alekz