I am trying to get the value of a clicked node. I am using the NodeMouseClick event but e.Node and e.Node.Tag are always empty regardless of what Node I click.
Below is an example of how I am populating the control:
I found a solution that works for me. Just set the base.Text to the value you want in the ColumnNode class then you get the row data when using NodeMouseClick.
Hi,
I am trying to get the value of a clicked node. I am using the NodeMouseClick event but e.Node and e.Node.Tag are always empty regardless of what Node I click.
Below is an example of how I am populating the control:
And here is the event which I am using:
Does anyone know how I can make this return the node value?
Many thanks
Mark Fleet
Hi Mark
I found a solution that works for me. Just set the base.Text to the value you want in the ColumnNode class then you get the row data when using NodeMouseClick.
You also have to use the DataPropertyName = "Text" to retrieve it.