Radgrid not updating after insert
Our goal is to extend this example to allow for the user to delete products via the Grid View.To accomplish this we need to specify values for the Sql Data Source control s statement created in Step 2.hi all i have a grid view which get its values from some dropdownlists which are at the same page the dropdownlists insert thier values to the DB then i retrieve them to the grid view i made a button "add another" .. However the after the delete, the database are updated.
As discussed in An Overview of Inserting, Updating, and Deleting, the Grid View control provides built-in updating and deleting capabilities, while the Details View and Form View controls include inserting support along with editing and deleting functionality.
Select the Delete Query property, which will bring up a set of ellipses.
Figure 2: Select the Delete Query Property from the Properties Window provide a value for this parameter (leave its Parameter source at None ).
collection and can include hard-coded values, common parameter source values (querystring fields, session variables, Web control values, and so on), or can be programmatically assigned.
When the Sql Data Source control s method is invoked either programmatically or automatically from a data Web control a connection to the database is established, the parameter values are assigned to the query, and the command is shuttled off to the database.