Rowupdating e

Rated 4.68/5 based on 632 customer reviews

I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base. Is Bound Using Data Source ID; Grid View Update Event Handler handler1 = (Grid View Update Event Handler) base. To get the Primary Key reference we can use the Data Keys collection of the Grid View.This collection only requires the row index no and it will give us the primary key.For a while now I’m trying to figure out why my method, triggered by the Grid View.Row Updating event, doesn’t work as all samples say it should do.

rowupdating e-50

rowupdating e-72

rowupdating e-49

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.

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?

Now I will show you the C# code behind file of the above ASP.

NET page that will handle different Grid View events to provide complete editing functionality.

Leave a Reply