WPF ObservableCollection

Sep 23, 2009 at 9:34 PM
Edited Sep 23, 2009 at 10:00 PM

Hi All,

  I am new to wpf and I have a question. I am using wpf databinding to display records from the database.

Currently, I create a client object using,

Clients=new ObservableCollection<Client>();

I then created a method


public override void DataUpdate(SearchResult result)

            foreach (DomainObject obj in result.ResultSet)
                Client client = (Client)obj;
Right now, what I do is recreate the observablecollection list everytime anything changes in the database.
What I want to do is to add or delete items from the observablecollection list instead of recreating it.
Please help.


Oct 18, 2009 at 1:33 AM

bing maps should help you, are you lost? ;}