2 0 gridview rowindex rowupdating

16-Oct-2014 12:02

For example, the current data is: name: Blake, phone: 123-234-3456, email: [email protected], contact Id: 22 I type in new data: name: John, phone: 555-555-5555, email: [email protected], contact Id: 22 Data that ends up in the database: name: Blake, phone: 123-234-3456, email: [email protected], contact Id: 22 When you raise the Row Updating event your basically getting the values BEFORE the Grid View updates the row.This is basically so you can cancel the update operation. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.There are many articles and tutorials around that illustrate the use of Grid View control along with the new Data Source Controls.

The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.

Grid View Row Collection.get_Item(Int‌​32 index) at Philip. For other command buttons, you must manually set the Command Argument property of the command button.

View Item Item_Row Command‌​(Object sender, Grid View Command Event Args e) The Button Field class automatically populates the Command Argument property with the appropriate index value.

All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.

Check out what I’m trying to do, maybe you can help?

The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set. Grid View Row Collection.get_Item(Int‌​32 index) at Philip. For other command buttons, you must manually set the Command Argument property of the command button. View Item Item_Row Command‌​(Object sender, Grid View Command Event Args e) The Button Field class automatically populates the Command Argument property with the appropriate index value.All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.Check out what I’m trying to do, maybe you can help?When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.