Jump to content

Recommended Posts

Posted

Hey all - I must be having a bad day.

 

I'm trying to bind a WPF listbox to an ADO.Net Datatable.

 

I have a listbox, and have the the ItemsSource property to my datatable's Rows collection.

 

That works fine, I get my records returned etc and all is well..... but if I add a new row to the collection, the Listbox does not get updated, nor if I remove a row etc.

 

In order to refresh the listbox, I have to set the ItemsSource property again, which I'm sure is not the right way to go about this.

 

I think I must be missing something, but would really appreciate a nudge in the right direction :-)

 

 

More...

 

View All Our Microsft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...