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.
Well, in that case I believe the best way to proceed would be to contact developer support directly - since I am not sure we can get this resolved in forum. I am just unsure about the support status of 2005.2 currently, so you will probably need to double check that with themdirectly. Which brings one idea - if you have the chance, please check out the latest hotfix that is available to you - this may have the problem resolved.
Developer Support can be reached via the following link
http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx