0
我在嘗試更新Devexpress TreeList
的ItemSource
。它似乎工作,我第一次按下我的按鈕,但它不工作了...是否還有其他我必須更新以更改ItemSource
。正在更新中TreeList ItemSource
代碼
window.randButton.Click += delegate
{
string st = window.nList.CurrentCellValue.ToString();
System.Diagnostics.Debug.WriteLine("Called: "+st);
try {
window.treeList.ItemsSource = null;
window.treeList.ItemsSource = drawOrderBook(currCycle, st);
// currCylce is static data
// drawOrderBook computes what to display based on the filer st
}
catch(Exception er) { System.Diagnostics.Debug.WriteLine(er.ToString()); }
};