This question is locked. New answers and comments are not allowed.
hello i use this function to get the cell value but if data is grouped currentrow and cell is always nothing.
how can i get the value in grouped mode?
how can i get the value in grouped mode?
Private Sub grcars_MouseLeftButtonDown(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles grcars.MouseLeftButtonDown
If grcars.Records.Count > 0 Then
'Get ID ----------
Dim currentRow As GridViewRow = TryCast(grcars.ItemsControl.ItemsGenerator.ContainerFromItem(grcars.CurrentItem), GridViewRow)
Dim cell As GridViewCell = TryCast(currentRow.Cells(7), GridViewCell) 'ID
'Get Data -----------
If cell Is Nothing = False Then
ClearData()
LoadData(cell.value.tostring)
Exit Sub
End If
End If
End Sub