【发布时间】:2013-05-17 04:05:08
【问题描述】:
您好,我有一个关于 treeview 的问题。
我有一个 List 列表和名为 treeLic 的树视图。现在我想用这个列表填充这个树视图。我可以这样做吗?怎么做?
XmlReader xr = XmlReader.Create(new StringReader(final_output));
while (xr.Read())
{
switch (xr.Name)
{
case "FEATURE":
if (xr.HasAttributes)
{
while (xr.MoveToNextAttribute())
{
if (xr.Name == "NAME")
{
liste.Add(xr.Value);
}
}
}
break;
}
}
treeLic. ????? //fill this treeview with this list liste
【问题讨论】:
-
展示你的作品并告诉人们你迄今为止尝试了什么。人们无法读懂你的想法..
标签: c# string list collections treeview