Home Forums WinForms controls Xceed Grid for WinForms retrieve value from cell for selected row and hidden column Reply To: retrieve value from cell for selected row and hidden column

Xceed Support
Member
Post count: 5658

You just need to put “loe_id” as a parameter of the cell. Also, in the code you sent, the “loe_id” column was visible. However, it does not change anything if you get the value from a visible or an invisible column.

e.g.,
<code>
Private Sub cell_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
Dim row As Xceed.Grid.DataRow = DirectCast(GridControl1.CurrentRow, Xceed.Grid.DataRow)

If row IsNot Nothing Then
Dim index As Integer = row.Cells(“loe_id”).Value
End If

End Sub
</code>

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