Gridview rowupdating change value who is kelis dating 2016

Description: An exception occurred while processing your request.

I thought the rowupdating event was the place to do that, so I wrote the following method: A couple things to note: 1) the textbox and the label are inside an Item Template. Text + "1111" 'set other update parameters Sql Data Source1.

The textbox is visible when the gridview is in "edit mode", and the label is visible when the gridview is in "normal mode" 2) When I place a breakpoint in the rowupdating method, it looks like the values are changed as I would expect them to be. Update() End Sub Thanks, Qin, Thanks for the response.

But when the Gridview displays, the "1111" isn't there - but the changes made by the user are! Hi juriggs, If the textbox and label are bound to data source, you needn't to set the text manually. You were right, I am binding the Grid View with a Sql Data Source.

In Row Updating event you can only update the text manually. Unfortunately, I tried the code, and it didn't quite work.

For example (I suppose you bind Grid View with Sql Data Source): Protected Sub Gridview1_Row Updating(sender As Object, e As Gridview Update Event Args) Sql Data Source1. The thing that's really confusing me is that when I set a breakpoint and go through the code line by line, it looks as though it's working. Hi juriggs, Make sure the update command really works in your case and rebind Grid View after updating it: Grid View1. If it still does not work, please paste the source code of Grid View of Sql Data Source and Row Updating event. As I mentioned before the user input is reflected in the updated Gridview - just not the appended "1111".

Last modified 06-Nov-2015 10:46