不论treeView1绑定的数据源是DataSet还是List<T>,只要赋值SelectedValuePath为字段名value即可。

this.treeView1.SelectedValuePath = "value";

相关文章: