Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1225
How to obtain the IdProduct from Child Node in the UltraTree Control
posted

Hi friends, My UltraTree Control have this structure and is shown how the figure below.

       dtproduct.Columns.Add("cCategoryId").DataType = System.Type.GetType("System.Int32")
       dtproduct.Columns.Add("cCategoryName").DataType = System.Type.GetType("System.String")
       dtproduct.Columns.Add("cDescription").DataType = System.Type.GetType("System.String")
       dtproduct.Columns.Add("pProductId").DataType = System.Type.GetType("System.Int32") 

    

This is shown in two levels Father (Category) and Child (Product), I need obtain the IdProduct when I make clic in  Node Child, I'm doing this:

Private Sub utCategories_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles utCategories.Click
        If Not Me.utCategories.ActiveNode Is Nothing Then
            Dim cellValue As Object
            cellValue = Me.utCategories.ActiveNode
            If Not cellValue Is Nothing Then
                MsgBox("You've done clic in:  " + cellValue.ToString())
            Else
                MsgBox("ActiveCell.Value is null.")
            End If
        Else

End Sub

 

My problem, I can't obtain the IdProduct, I always obtain the IdCategory.

Please any idea?

Thanks for all. God Bless You.