Can you set a value for the selected grid view from code?
I am currently highlighting rows in my gridview through the code behind. The problem is that when I insert new data through the form, I put a selection on the new data, but if you click "edit" or "delete" if they go, or for the first data in the grid, if you haven't selected anything yet, or the latest data selected. Thank.
0
Joemer
source
to share
1 answer
According to the MSDN documentation GridView.SelectedDataKey its a read-only property.
You can check the documentation for the GridView.SelectedPersistedKey that can be set.
0
source to share