### Get Row Index SearchString

An example Sub to get a TableView RowIndex for a SearchString for a given Column.
'Get the tableview row index for a searchstring search in a specific column
'if searchstring not found, -1 is returned
`Sub TableView_GetRowIndex(tv As TableView, colindex As Int, search As String) As Int
Dim Result As Int = -1
For i = 0 To tv.Items.Size - 1
Dim row() As String = tv.Items.Get(i)
Dim s As String = row(colindex)
If s.EqualsIgnoreCase(search) = True Then
Result = i
End If
Next
Return Result
End Sub`
Example
Dim x As Int = TableView_GetRowIndex(TableView1, 0, "Searchstring")
If x <> -1 Then
TableView1.SelectedRow = x
TableView1.ScrollTo(x)
End If

Changed: , Category: TableView, File: T6C259M1886.htm, ID: 1886