You can find the textbox that is generated on edit event in the Row Updating event below and assign it to a string variable.
Then have a seperate function to update the values entered and finally call your Bind Grid() function which again binds the gridview..
Here an image will be stored into the application folder.
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.
首先在初始化Gridview时候定义主键的数组。 Grid View Teacher Student.
For example a Sql Data Source, which is automatically added to your Web Form if you drag-n-drop your way around Visual Studio 2005.
The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.
In the Page_Load event, you simply load your data from the database and bind it with the Grid View control as shown below: For brevity I am not storing connection string in the web.config and also not using any Data Access Component.