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
105
hierarchal grid - Row Selected value
posted

can any one help me out in getting the row selected value in hierarchial grid(parent and child grid).

 

 

Parents
  • 468
    posted

    the following code is on the double click event of my grid, check to see if it is a parent row or a child row and then get the value from the grid. hope this helps.... 

     

    If Not grdTop.DisplayLayout.ActiveRow Is Nothing Then

    Dim intRow As Integer = grdTop.DisplayLayout.ActiveRow.Index

    Dim intBand As Integer = grdTop.DisplayLayout.ActiveRow.Band.Index

    Dim oRow As Infragistics.WebUI.UltraWebGrid.UltraGridRow = grdTop.DisplayLayout.ActiveRow

    Dim intParentRow As Integer

    If oRow.HasParent Then

    intParentRow = oRow.ParentRow.Index

    Else

    intParentRow = intRow

    End If

    Dim strValue As String = grdTop.DisplayLayout.Rows(intParentRow).Cells(1).ToString()

    .....

    End If

     

     

Reply Children
No Data