Hi all,
I have radGrid and I added a Delete button. When clicked, I want to fetch the DataKeyNames value and then delete the corresponding row in my sql table. I already have the radgrid set-up and I also have a method to delete the row. What I cannot figure out is how to get the value of the selected DataKeyNames. I am trying this but it's not working:
Any ideas on how I can get this value?
Thanks,
Bob
I have radGrid and I added a Delete button. When clicked, I want to fetch the DataKeyNames value and then delete the corresponding row in my sql table. I already have the radgrid set-up and I also have a method to delete the row. What I cannot figure out is how to get the value of the selected DataKeyNames. I am trying this but it's not working:
Dim
iPolicyId As Integer = Convert.ToInt32((e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("PolicyId")))
Any ideas on how I can get this value?
Thanks,
Bob