Getting new value gridview rowupdating event

But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.

When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.

Get String("Grid View_Unhandled Even t", new object[] { this.

For a while now I’m trying to figure out why my method, triggered by the Grid View.

getting new value gridview rowupdating event-74getting new value gridview rowupdating event-16

All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.Check out what I’m trying to do, maybe you can help?First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call.A friend asked me to help him out on this and frankly it has me completely stumped as well. I'll try to address your question, but I'm also going through some of the other problems here.

340

Leave a Reply