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. I have tried to not override in control and instead use delegates like I described in ...A friend asked me to help him out on this and frankly it has me completely stumped as well. You'll be able to ask questions about coding or chat with the community and help others. the good old problem of getting the data from the row that is being currently edited within a Grid View. Accessing the "Controls": This method gets you access to the control in the Grid View, which might be useful based on what you are doing.
For a while now I’m trying to figure out why my method, triggered by the Grid View.
I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method.
If you don't use one of the Data Source controls, you are required to handle the Row Updating event.
If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method.
Count ----------- The most common problem for losing new data entered while updating a Grid View or Data Grid is that you are resetting the Data Source for the Grid View or Data Grid in the Page_Load method. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working.