• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
.NET Framework Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
.NET Framework Developer Center > .NET Development Forums > Windows Presentation Foundation (WPF) > Auto Update of a ListView from a DataSet
Ask a questionAsk a question
Search Forums:
  • Search Windows Presentation Foundation (WPF) Forum Search Windows Presentation Foundation (WPF) Forum
  • Search All .NET Development Forums Search All .NET Development Forums
  • Search All MSDN Forums Search All MSDN Forums
 

QuestionAuto Update of a ListView from a DataSet

  • Monday, June 09, 2008 3:41 PMRoy in Acworth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    This is part WPF and part DataSet question.  I want to be able to use the built-in 'notification' of a change in a DataSet to update the bound ListView.  It is not working, and I think I know why, but I don't really know enough to fix it.

    My DataSet has several table that are a one-to-one mapping of the data tables in the SQL database.  The data table that is bound to my ListView is populated though a Relation that effectively filters the results based on a previous selection.  (The initialation code for the from that contains the ListView calls GetChildRows using the relation to populate the table.)

    If after I add a row to my DataSet and then call GetChildRows again, then I see the new row.

    It appears that the auto update notification does not force a call through GetChildRows, which I guess is not a surprise.

    What I need to know is how to do the equivalent of the Relation in such a way that auto update notification to the ListView will work.

    Thanks
    • ReplyReply
    • QuoteQuote
     

All Replies

  • Wednesday, June 11, 2008 4:35 AMMarco ZhouMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Could you please provide a small, complete and ready-to-run example to help us understand the issue you are encountering?


    Thanks

    • ReplyReply
    • QuoteQuote
     
  • Wednesday, June 11, 2008 12:19 PMRoy in Acworth Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    I sould be able to create one today.  Do I email it to you or post it somewhere?
    • ReplyReply
    • QuoteQuote
     
  • Thursday, June 12, 2008 3:30 AMMarco ZhouMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Well, you could send it to me at v-mazho at microsoft dot com.

    Thanks
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement