I tried to use this: Drop Down List ddl = (Drop Down List)Grid View5.
It just keeps getting me errors about the conversion when i'm trying to update the fields.
Please review the stack trace for more information about the error and where it originated in the code.
I am trying to change the value in textbox but after submitting the changed value is not coming. Description: An unhandled exception occurred during the execution of the current web request.
Parameter name: index Any idea what I need to do to fix this issue? It is very useful to us in practical in our collage project.
And thankful of this link.thanks, Ritesh vyas How to update a dropdownlist in the gridview?
On the other hand the variable update will hold value equal to (number of rows in the table) / (batch size). NET 2.0, the Data Adapter provides a property called Update Batch Size which allows you to execute queries in a batch.
This significantly reduces the database roundtrips and hence is more efficient in terms of performance.For those who do not know on how to generate Events in Grid View you can follow these steps below: I have a project that I coppied the above code into. When I do an update, and get to the Grid View1_Row Updating, there is no value passed to "ID", and then when I go to the next row for "Company" I get the following error: Specified argument was out of the range of valid values. In this example, this time I used my own database called Sample DB which has Customers Table and basically contains the following field columns: As you have noticed in STEP 2, we have added six Text Box and a Button in the web form in order for us to type the information there and Insert them to the database. Now let’s create a method for executing the Update or Insert. When you use Sql Data Adapter for performing updates, the Sql Data Adapter propagates the updates one by one.