Gridview rowupdating neweditindex Chating xxx usa
To get what you've type in I think you need to get the new values (the Dictionary e. In your case you can use it something like this (assuming name, phone and email are what they're called in your gridview): NOTE: If you're simply using this to get the values typed in to update your database then you're better of binding the datagrid and use the value after that to ensure you definitely have the same values in the datagrid as to what you put into the database.Alternatively, use the Row Updated event instead of the Row Updating event. However, as Martin says you don't need to do this if all you're doing is simply getting the new values put in your data grid to then update your database.
"test" will appear in label not "asd" as I would want to.
In my application, I give the user the option to search the database.
When they click edit, I want the Grid View to only show the row they are updating by storing its ID.
Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.
In the above tutorial I tried to give you one of the easiest solutions and I hope you can go explore Grid View control editing further after learning the basics from this tutorial.