treelist.datasource = GetAllTables(); 但我希望在数据库中更改数据时,树状列表会自动更新。 我该怎么做?i have got this function returning data from a database to a treelist.datasource.public List<Table> GetAllTables(){    var tables = from table in db.Tables    orderby table.table_name    select table;    return tables.ToList();}...treelist.datasource = GetAllTables();But I would like the treelist to get updated automaticley when data was changed in the database.How do I do that?推荐答案查看使用的ObservableCollection< T>类以查看它是否适合您。Look into using ObservableCollection<T> Class to see if it works for you. 这篇关于数据更改通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-14 21:58