### Handle Double Click on Selected Cell

To handle double click on a TableView selected cell, use the MouseClick Eventdata method.
Ensure to set the TableView property SingleCellSelection = True.
This example uses globals Vars to store the cell position and content.
Please note that there might be better ways to get the content of the selected cell.
`Sub Process_Globals
' Tableview store cell row/col index and cell value
Private gRowIndex As Int
Private gColIndex As Int
Private gCell As Object
End Sub`
' Track the cell changes and store in the global vars
`Sub tvwMain_SelectedCellChanged (RowIndex As Int, ColIndex As Int, Cell As Object)
gRowIndex = RowIndex
gColIndex = ColIndex
gCell = Cell
End Sub`
' Handle double mouse click via clickcount
`Sub tvwMain_MouseClicked (EventData As MouseEvent)
If EventData.ClickCount = 2 Then
Dim strCellContent As String = gCell
Log("Double Click on Cell (R/C = Content):" & gRowIndex & "/" & gColIndex & " = " & strCellContent)
End If
End Sub`
Note
If TableView Property SingleCellSelection is False then the content of the Selected Row can be used.
Example:
Dim Row() As Object = tableview1.SelectedRowValues
For j = 0 To Row.Length - 1
Log("Row " & i & " | Cell " & j & ", Value=" & Row(j))
Next

Changed: , Category: TableView, File: T6C259M1888.htm, ID: 1888