RE: Associating value with a node in a treeview windows forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmR1YW4=?=

    RE: Associating value with a node in a treeview windows forms

    use TreeNode's Tag property.

    e.g: nodeFirstRecord .Tag = dr["indexId"];
  • =?Utf-8?B?Vmlua2k=?=

    #2
    RE: Associating value with a node in a treeview windows forms

    hello Jduan,

    I tried to use that, but when i was triying to retrieve the value by
    TreeView1.Selec tedNode.tag property, I got the value null.

    Am I doing anything wrong

    "Jduan" wrote:
    use TreeNode's Tag property.
    >
    e.g: nodeFirstRecord .Tag = dr["indexId"];

    Comment

    • =?Utf-8?B?SmR1YW4=?=

      #3
      RE: Associating value with a node in a treeview windows forms

      Check you code carefully. Make sure the TreedNode is the same object when you
      retrieving it. Post you code here if you still have problem.

      Comment

      Working...