Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.I can't see anything wrong with the code and it's driving me mad. hi, i think you miss something, try to see the table where you save the value of the fields you entered if it change anything, if it change anything, then you have put some code on your SP that retrieves data after the UPDATE code that you have.I was hoping to do it through a callback because I think my Grid View will have a lot of data, and I do not want the Grid View to reload all that data each time a new record is selected. Issue with getting values from child controls in a gridview, to use for the update using a SQLData Source control Hi all, I have a gridview bound with a SQLData Source.I am using the Update feature of the SQLData Source to update a SQL Server database with values entered into the gridview. I believe this is due to the controls that contain the user entries are not the gridview itself, but rather child controls within the gridview.In particular the code for the Grid View and the code that assigns data to it (using a data source control or code in the Code Behind maybe)?
Add the Control Paramter to the Select Paramters collection of the Details View. Is it absolutely necessary for the page to do a postback in order to update the Detail View? This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. When I click on the "Insert" link after filling in the Text Boxes from a Details View control, I would like my Grid View display to now include everything I had plus the new insertion "row" (after insertion, "re-visit" the specifiic table). Click the button below this post to show your appreciation! NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. Details View server control is used to display, delete, insert or edit a single record from data source. More about Form View control you can read in Form View Control: Step by Step tutorial. After we created Sql Data Source control, we need to associate it with Details View control.Details View control is often used in master/detail scenario with Grid View control. To work with records, first we need to connect Details View control with some data source. You can do that in design view, like on next image: Also, you can do this if you set Data Source ID property of Details View control to the name of your data source control. Sql Data Source control above uses a database with Products and Categories tables.