Getting the new value in gridview rowupdating
I've attached my code for what it's worth, but it will probably be too dificult to determine everything that I am doing.
Is there a flag I can turn on or off when I am doing row updating so that I can detect and not rebind?
When all you've got is a Hammer, Every Problem looks like a Nail. Since you are already getting a Row Updating event, I'll work from there.
To get both the old and the new value of a field named unit_price, (for the example as a String.
Text "" Then str Params = "(" & str Params & ") AND (ECADdesigner Names ='" & Me.
Find Control("txtdescription") Dim txtunit_price As Text Box = gvr. Edit Index = -1 'Bind data to the Grid View control. When all you've got is a Hammer, Every Problem looks like a Nail. Since you are already getting a Row Updating event, I'll work from there.Unless they are Key fields, there isn't really a way to get to these. Data Bind in Row Updating (or at least before the Update is actualy processed) is better not done. Please remember to click “Mark as Answer” on the post that helps you.This can be beneficial to other community members reading the thread. Data Bind() End Sub Its not your fault that the new values are empty. Is Post Back) otherwise you'll wipe out the new values everytime before the updating event gets called.