To use rowupdating dating old books
The visitors to a web site can typically be divided into two groups: the users and the administrators.In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.You're accessing so many items without null checks that it could be any number of things. Are you sure all of the controls exist in the cells you're specifying? So I am having an issue with doing an update in a Gridview during an On Row Updating event.As soon as I click update, the edit text box from my Grid View disappears and I am left with the original value before trying to edit it.
I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.
Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.
If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.
NET page that will handle different Grid View events to provide complete editing functionality.
In the Page_Load event, you simply load your data from the database and bind it with the Grid View control as shown below: For brevity I am not storing connection string in the web.config and also not using any Data Access Component.
I am posting this question after reading other similar questions about my problem but not really understanding how I can use the information.