How do you databind to a System.Windows.Forms.Treeview control?

后端 未结 3 1906
[愿得一人]
[愿得一人] 2020-12-01 18:37

I\'m looking at this control, and it seems to be lacking the standard .net \"datasource\" and \"datamember\" properties for databinding. Is this control not bindable? I ca

3条回答
  •  庸人自扰
    2020-12-01 19:07

    If it's only a couple levels, I like to populate a dataset with a couple tables and set up a DataRelation on the columns. Then you use some nested loops and create your tree nodes.

提交回复
热议问题