I want to be able to update the value of one field for the selected row of my grid when a button is pressed.
However, I am having trouble trying to get the selected value of the row based on its "DataKeyNames" value.
My stored procedure uses a value of the selected item as a parameter, this is why I want to extract the value.
I've tried things like "selectedvalue" but nothing works dynamically.
My stored procedure is basically "update rows with data where id = @id" and I need that id being the selected grid value.
Any ideas?
However, I am having trouble trying to get the selected value of the row based on its "DataKeyNames" value.
My stored procedure uses a value of the selected item as a parameter, this is why I want to extract the value.
I've tried things like "selectedvalue" but nothing works dynamically.
My stored procedure is basically "update rows with data where id = @id" and I need that id being the selected grid value.
Any ideas?