Gridview rowupdating boundfield value
I have my onrowupdating method, and it works, except for this one value is not getting passed to the method. The problem lies in one of the rows that I converted to a templete field and added a dropdownlist to.
NET 2.0 Grid View control allows us to quickly edit and delete records.
We check the value entered in the Text Box using args. Especially the following events are important for validation point of view.
Out of these events Row Updating and Row Deleting are possibly the most common ones.
On the first step of the wizard click on "New Connection" button to open a dialog as shown in Figure 1.
Enter the database details as per your setup and click on OK.
In our example we will illustrate the use of Updating event for the validation purpose.
When when they click update I want the value of the drop down list to get passed to my method.
This is the code for the col in my gridview that does not work Alright so I have a Grid with 17 fields.
Add Grid View1_Row Updating event handler as shown below: The Row Updating event handler receives an event argument of type Grid View Update Event Args.
The Grid View Update Event Args class has three important collections - Old Values, New Values and Keys.