Rowupdating new value

If you don't use one of the Data Source controls, you are required to handle the Row Updating event. I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base. I can't get this to work and I was hoping this would solve my problem trying to update a gridview without datasource. Grid View was filled with the old values again, so in my Grid. Is this a limitation of creating the grid dynamically? When you are explaining your problem please post any code snippets that will help us understand what you are doing. None of them will retrieve anything but the old data. I just need the data, and I'll then run a stored procedure to update the values, THEN re-query it. The Confirm and Scrap commands all work fine, as do my refresh and display routines. In the future just post the portion of your code that's causing problems. When you do this your data is bound to your grid view and your newly entered information is's quite a common occurrence to Grid View update problems.A friend asked me to help him out on this and frankly it has me completely stumped as well. I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method.

Can someone please translate this for me from C# to VB. I was doing databinding in my Page_Load event and when I clicked "Update" the Post Back was done, so was the Page_Load event fired.I am working on a application where i am using rowupdating event of the gridview. I am using templatefield in my columns so i am not able to get the new values from the textboxws that i am having in the gridview. Following is my code in rowupdating: i want to get the new values form these textboxes but it is always giving me old values. It'd be great if you could provide some sample code here. I am using the Row Updating event to programmatically update my database, but the new values are already gone by the time the Row Updating event is fired. I have found several forum postings detailing this but no one has posted their solution. Another way to get values out of the gridview is to put the interesting fields in Data Key Names, which can be a very ugly solution because the viewstate grows as a result of this. If so, how do you know the control id if it's dynamically created? I am having the same problem, and it's not a boundfield or template field problem either as I am using both. This magical function extracts values from the datacontrol fields and puts them in an IOrdered Dictionay.

Leave a Reply