コード例 #1
0
        private void RefreshCardLevel()
        {
            DataTable dt = SelectDao.GetCardName();

            this.treeList1.BeginUnboundLoad();
            TreeListNode parentNode = this.treeList1.AppendNode(new object[] { "所有会员" }, -1);

            foreach (DataRow dr in dt.Rows)
            {
                string level = dr[0].ToString();
                cardNameList.Add(level);
                this.treeList1.AppendNode(new object[] { level }, parentNode);
            }
            this.treeList1.EndUnboundLoad();
        }