Row updating event in grid view

The grid attaches to a static datatable which is created by selections from user input.As sharepoint 2010 is restricted to use only framework 3.5.Save all or press "Ctrl S" and hit "F5" to run the page, the page will look as in the following image: Click on "Edit the Grid View", it will display Textboxes in each cell as in the following image: Edit the value(s) here and click on the Update link, it will update all the data or to remove it click on the "Delete" link above the image shown.One note will be helpful for you, while describing Columns in Grid View if you are using a boundfield then create objects of the control using cells[index] in the rowupdateing event of Grid View, but if you are using controls itself like Label or textboxes etc then use Fincontrol("stringid").

The secret lies in the event handlers–in this case, the Row Updating event handler. Grid View Update Event Args object that is passed in. This page contains copyright material from //blog.and you have no rights to copy and paste the full text into your own blog even if you have written permission to the contrary. It seems , I cannot use the solution you have provided, but i will still give it a try.I did try the solution but my old and new values come as empty. I cannot use other solutions as have been provided in this post because i am not assigning my grid or dropdown list at design time. I did go through what you suggested but as my grid is not designed at design time. I can't seem to get the methods for Object Data Source on my Page when working on a Web Site.This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call.A couple of days ago I mentioned a project that I’ve been working on that is a bit out of the ordinary as far as Grid Views go.

Leave a Reply