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 intBand As Integer = mygrid.DisplayLayout.ActiveRow.Band.Index
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.
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?
code is in mygrid_DblClick event. grid displays,...I click a button to collapse all the rows, and do a sort by clicking on the header on one of the date columns and double click a row. if I don't do sorting double click event seems to be pulling the right data. if I do sorting wrong date is pulled. I tried changing the code to use FromKey to get the data. still the same. thanks.