Easy object binding to Treeview Node

前端 未结 4 1127
北恋
北恋 2021-01-11 14:25

How can I bind an object to a treeview (Winforms) node in C#?

I thought of something like ExNode : Windows.Forms.Node that can take an object as member besides the t

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-11 14:52

    Are you looking for something like the Tag property on TreeNodes? It can hold any object.

    http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode.tag.aspx

提交回复
热议问题