Hi,
I'm using WebGrid and want to be able to get cell data from a user selected row. I've done this with a WinGrid, but I am now stumped. I am using a double click event.
When I double click a row I get unpredictable results. Sometimes I get the row I clicked, other times I get a different row. Sometimes the different row is the first row in the grid, but other times it is close to the one I clicked. In my testing, I've tried accessing the selected row and the active row. I am assuming that it should be "selected row."
My WebGrid is load on demand and accumulative. Of course, I'd want this to work for a full grid and a filtered grid. Do you have any ideas?
Thanks
J
________________________________
This is the row click code:
Private Sub UltraWebgrid1_DblClick(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.ClickEventArgs) Handles UltraWebGrid1.DblClick
' I'd like to get the data in cell 1 of the clicked row
Dim str1, str2 As String
str1 = UltraWebGrid1.DisplayLayout.ActiveRow.Cells(1).Value
str2 = UltraWebGrid1.DisplayLayout.SelectedRows.Item(0).Cells(1).Value
End Sub