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
468
Double Click on grid gives wrong results
posted

using v5.2 version. wrong data being retrieved -- when I double click on the grid using active row to get the current row. and noticed that this happens when I sort my column. without sorting the column data retrieved from double click seems to be fine. here is the code Iam using..

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

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

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

Dim intParentRow As Integer

If oRow.HasParent Then

intParentRow = oRow.ParentRow.Index

Else

intParentRow = intRow

End If

Dim strClm As String = mygrid.DisplayLayout.Rows(intParentRow).Cells(1).ToString()

 ex..if I double click on a row that has strClm value 1586 on the grid, my double click returns me 944 as my strClm value.

 

any insight would be helpful. thanks.

 

 

Parents
  • 28464
    posted

    Hello,

    Could this be a page lifecycle issue? e.g. at the point where you attempt to get the active row (is the code that you pasted by any chance in the Page_Load event) the grid is still not sorted / rebound? Where are you using the code?

Reply Children