I have a DevExpress’ ASPxGridView in my page with some data.
I want to get the values of a row based on an index.
Here’s what I’m doing in the RowUpdating event:
Dim index As Integer = grdxFornecedor.FindVisibleIndexByKeyValue(e.Keys("IdFornecedor"))
Dim row As System.Data.DataRow = grdxFornecedor.GetDataRow(index)
The second line is returning Nothing, even with the index existing in the grid.
Anyone?
Thank you.
Use the ASPxGridView.GetRow method instead and convert the retrieved data item to the required destination type: