您的位置:首页 > 其它

DevExpress TreeList数据便利

2011-09-08 10:53 330 查看
Hashtable hashTable = HashTableClass.VideoData();

TreeListNode node = null;

ArrayList arrayList = new ArrayList();

this.treeList1.BeginUnboundLoad();

foreach (DictionaryEntry voide in hashTable)

{

arrayList.Clear();

node = this.treeList1.AppendNode(new object[] { voide.Key }, -1, 0, 0, 4);

Hashtable hashTables = (Hashtable)hashTable[voide.Key];

foreach (DictionaryEntry vodes in hashTables)

{

arrayList.Add(vodes.Key);

arrayList.Sort();

}

foreach (String context in arrayList)

{

this.treeList1.AppendNode(new object[] { context }, node);

}

}

this.treeList1.EndUnboundLoad();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: