Exemple #1
0
        /// <summary>
        /// 刷新已经绑定的网格数据。
        /// </summary>
        /// <param name="xtraGrid"></param>
        /// <param name="lstDatas"></param>
        public void RefreshTreeListData(DevExpress.XtraTreeList.TreeList trvList, IList lstDatas)
        {
            IBindingList oldList = trvList.DataSource as IBindingList;

            oldList.Clear();
            foreach (object newItem in lstDatas)
            {
                oldList.Add(newItem);
            }

            trvList.RefreshDataSource();
        }
Exemple #2
0
 public void ReflushDataSource()
 {
     treeList1.RefreshDataSource();
 }