Windows Develop Bookmark and Share   
 index > Windows Forms General > Postback not happening on selectign a treeview node
 

Postback not happening on selectign a treeview node

Hi,

I have a treeview control wherein the parent nodes are populated with single data and child nodes are populated with tables.

Here is how it is populated:

dRow is a row in a datatable.

parent node:

newNode.Text = dRow[2].ToString();

Child node:

newNodeChild.Text = "<Table width='300px'><TR><TD>" + dRow[4].ToString() + "</TD><TD>" + dRow[3].ToString() + "</TD></TR></Table>";

The selectedindexchanged event is called only when I select a parent node. It is not called when I select the child node. How do I make the postback to happen on selection of the child node also?

sandy82  Tuesday, January 23, 2007 8:52 AM
The event is SelectedNodeChanged and not SelectedIndexChanged as mentioned above
sandy82  Tuesday, January 23, 2007 10:46 AM

You can use google to search for other answers

Custom Search

More Threads

• TrackBar background rendering with Visual Styles enabled
• Encrypt appSettings of the app.config file
• Current Context Error
• Compatibility.VB6.FileListBox Question
• Please suggest a form and dialog box workaround.
• Microsoft RichTextBox Control 6.0 and .NET
• disposing a control created at runtime
• List box above list box. How do I get to anchor correctly
• ListView control setting height with no scrolling
• Repaint multiple controls in a container into one buffer?