Home Forums WinForms controls Xceed Grid for WinForms CurrentRow Reply To: CurrentRow

Xceed Support
Post count: 5658

Many online tools are available to translate from C# to VB.NET.

If gridControl1.CurrentRow IsNot Nothing Then
Dim value As String = DirectCast(gridControl1.CurrentRow, Xceed.Grid.DataRow).Cells(0).Value.ToString()
Dim rowNumber As Integer = gridControl1.DataRows.IndexOf(DirectCast(gridControl1.CurrentRow, Xceed.Grid.DataRow))
End If

Imported from legacy forums. Posted by CharlesB (had 443 views)