Gridview rowupdatingobject sender gridviewupdateeventargs e online dating service madison

04 Feb

And the gridview's datasource is a dataset I populated from my database.

I Take it that without a SQLDatasource thats bound to your gridview, you will have to connect to the database again and update the database manually.

Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.

One of our ideas is usually that the advancement and recognition of online dating usually are awesome developments for members, specifically insofar since they let single ladies in order to satisfy would-be couples many people also wouldn’r have reached.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

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.