4 Answers, 1 is accepted
0

Jocelyn
Top achievements
Rank 1
answered on 16 Feb 2012, 08:46 PM
Sorry I miss formulate my question.
I can get the value of the row by this:
But I only get editable values with this and I need the value of the "primary key" of my row that is ReadOnly. So how can I get it ?
Sorry for my bad english.
Edit: Here is my answer ForceExtractValue="Always" in the GridBoundColumn
Thanks
I can get the value of the row by this:
Dim
edit = TryCast(e.Item, GridDataItem)
Dim
oldValues
As
New
Hashtable()
e.Item.OwnerTableView.ExtractValuesFromItem(oldValues, edit)
But I only get editable values with this and I need the value of the "primary key" of my row that is ReadOnly. So how can I get it ?
Sorry for my bad english.
Edit: Here is my answer ForceExtractValue="Always" in the GridBoundColumn
Thanks
0
Accepted

Casey
Top achievements
Rank 1
answered on 16 Feb 2012, 09:09 PM
Hi Jocelyn,
You should be able to access the values in the OnDeleteCommand event of the RadGrid. I used a code converter for VB, so hopefully it converted properly...
I hope this helps!
Casey
You should be able to access the values in the OnDeleteCommand event of the RadGrid. I used a code converter for VB, so hopefully it converted properly...
Protected
Sub
RadGrid1_DeleteCommand(sender
As
Object
, e
As
GridCommandEventArgs)
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
dataItm
As
GridDataItem = TryCast(e.Item, GridDataItem)
Dim
val
As
[
String
] = dataItm(
"ColumnUniqueName"
).Text
End
If
End
Sub
I hope this helps!
Casey
0

Jocelyn
Top achievements
Rank 1
answered on 16 Feb 2012, 09:14 PM
Thank you Casey! I was looking for something simple like that!
0

Casey
Top achievements
Rank 1
answered on 16 Feb 2012, 09:16 PM
You are welcome! Glad I could help!