更新数据库后刷新ListView [英] Refresh ListView after Update Database
问题描述
良好的音质,
我开发了一个包含2页的应用程序
第一个包含一个ListView.使用dataTable(dt)填充我的ListView(ListView.Datacontext = dt.
在第二页(ListUser:窗口)中
我显示并更新ListView中选定列的值.然后我记录在数据库中.
在第二页末尾,我检索数据库中的数据更改,以便在ListView中显示它而不刷新Listview.La
如果可以的话,请帮助我,因为我停留了4天
打扰一下,我的英语不好.
Good moning,
I developed a application contains 2 pages
The first contains a ListView. with a dataTable(dt) I fill my ListView (ListView.Datacontext = dt.
In the second Page(ListUser : Window)
I display et update the values of the selected columns da ListView. then I record in the database.
At the close of the second page, I retrieve the data change in the database in order to display it in the ListView does not refresh Listview.La
Please help me if you can, because I stuck for 4 days
Excuse me my english is very bad bad
推荐答案
将新数据表重新绑定到ListView.
Rebind the new datatable to the ListView.
这篇关于更新数据库后刷新ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!