Gridview rowupdating old values

Please help me with writing a Row Updating function in C#, I don't know how to grab the current field's value and also get the old value for one of keys (which is Project Name for editing) of the selected row. the idea wa to don't allow binding the grid view after a post back.

hello my problem was that my gridview editable controls heep their old values. this is due to the grid view binding in the page_load method after every post back.

More information about the getting old values in Grid View control, please refer to the link below: you have any other questions, please feel free to post in this forum. Your code, if placed in the Row Updating event produces only the new values, not the old.

Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load).

Add(New Data Column("Col1_VL", Get Type(String))) dt.

Add(New Data Column("Col1_ML", Get Type(String))) dt.

This allows you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs I get the same problem.

The New Values and Old Values collections are empty..means I can't do anything but display the orginal data again :( Does anyone else have this problem or a solution?

Leave a Reply