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.
I beleive I answered this question here:
How to obtain the value from my Child Node UltraTree Control - Infragistics Community
Thanks.