Home › Forums › WinForms controls › Xceed Grid for WinForms › get cell value › Reply To: get cell value
What kind of exception do you get?
If it’s a NullReferenceException, use this little function:<code>Public Shared Function ConvertToString(ByVal o As Object) As String
If (o Is Nothing) Then
Return “”
Else
Return o.ToString
End If
End Function</code>Like this:<code>Dim v As String = ConvertToString(row.Cells(“celldataRowTemplate1Column1”).Value)</code>
Imported from legacy forums. Posted by Tommy (had 334 views)