Hi Stephen,
You can try the following code to fire the treeNodeCheckCh anged event. this
onlt fires when you change the checkbox and then click on the Item.
Dim tv As New TreeView
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
End Sub
Protected Sub tv_TreeNodeChec kChanged(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Tree NodeEventArgs)
Response.Write( e.Node.Text)
End Sub
Protected Sub GridView1_RowCr eated(ByVal sender As Object, ByVal e As
System.Web.UI.W ebControls.Grid ViewRowEventArg s) Handles GridView1.RowCr eated
If e.Row.RowType = DataControlRowT ype.DataRow Then
tv = e.Row.FindContr ol("TreeView1" )
AddHandler tv.TreeNodeChec kChanged, AddressOf
tv_TreeNodeChec kChanged
End If
End Sub
Regards,
Manish
www.ComponentOne.com
"stephen" wrote:
>
Hi All,
I have a TreeView with CheckBoxes in one of the cells of a GridView and
OnTreeNodeCheck Changed event it does nothing (basically does not postback)
but if I have a button on the page then the OnTreeNodeCheck Changed get
triggered on PostBack. Can some please help me understand why? and how to
get it to postback from GridView itself? any sample articles would be
helpful....
Thanks again,
Stephen