Gridview is not updating
Here is the code and what it looks like running: Notice that even though I’m using Bind rather than eval, the value does not stick.
Well, we always have a reason so I believe it is not working because Selected Value only has a Get (it’s read only) and the value can not be put back.
One of the pages relies on a grid view at the top, which has selectable rows which a form view below relies on.
The form view has a data key name of the selected row in the grid view.
Here, I’m explaining how to work with Grid View control in ASP.
Cells[column number here].text); Make sure you also add the parameter to your cmd.
So, I guess I should have know the answer to why the following does not work.
Right now you have @User ID for a parameter in your SQL, but there is nothing on the interface side saying what that is.
After you declare your SQLCommand cmd, you need to add a parameter for User ID, like this: SQLParameter prm User ID = new SQLParameter(); prm User ID. Value = (wherever your user ID is, so if it's in your Grid View, it will be