Home Forums WinForms controls Xceed Grid for WinForms Get value of a cell by current row Reply To: Get value of a cell by current row

Xceed Support
Member
Post count: 5658

Hello,

The CurrentRow can be any type of row, therefore its type is “Row”. In the case where a DataRow is the CurrentRow, you would need to verify the type and cast it as a DataRow in order to access its Cell collection.

Dim row As DataRow = grid.CurrentRow

If Not row Is Nothing Then
row.Cell( “myCell” ).Value
End If

Imported from legacy forums. Posted by Jenny [Xceed] (had 4819 views)