Gridview onrowupdating onrowupdated
Update- I am using template fields and changed the Eval statement to Bind.
I am trying to get the oldvalue of a column on a gridview.
I am getting the new value instead of the old value.
It is an event from that Data Source Control that will trigger the Row Updated event to fire.
So if you don't have a Data Source Control, it will never fire. If you need code of your own, consider using Object Data Source to have the benifits of a Data Source Control, and the freedom of code. Please remember to click “Mark as Answer” on the post that helps you. I have no idea how that works for stored procedures.
After the update to the table, I am expecting it to fire the Onrowupdated event. Thanks, Hi, A safe workaround is you can put a Hidden Field control beside Text Box and bind the same field to the Value property of it.
Is there a way I can pass this value back to the server and use it?
It is an event from that Data Source Control that will trigger the Row Updated event to fire. This can be beneficial to other community members reading the thread.
So if you don't have a Data Source Control, it will never fire. When all you've got is a Hammer, Every Problem looks like a Nail.
From what was said in the other comment, should I be calling the Build Grid from somewhere other than Page_Load()?
What happen if you leave the Bind Grid(); at the end but call Build Grid(); before finding the ddl?