C# TreeList控件,我已经把数据库里的数据读出来了,存在DataTable里,我想把数据便利到TreeList里,
答案:1 悬赏:30
解决时间 2021-01-24 19:00
- 提问者网友:寂寞梧桐
- 2021-01-23 22:12
C# TreeList控件,我已经把数据库里的数据读出来了,存在DataTable里,我想把数据便利到TreeList里,
最佳答案
- 二级知识专家网友:duile
- 2021-01-23 22:25
private void button1_Click(object sender, System.EventArgs e)
public override void Display(int depth)
{
Console.WriteLine(new string('-', depth) + name);
foreach (Component component in children)
{
component.Display(depth + 2);
}
}
追问:额 ,这不对吧,我说的是添加到TreeList里,
public override void Display(int depth)
{
Console.WriteLine(new string('-', depth) + name);
foreach (Component component in children)
{
component.Display(depth + 2);
}
}
追问:额 ,这不对吧,我说的是添加到TreeList里,
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯