Onrowupdating not fired

In the event handler the code to retrieve the PK in this case becomes considerably simpler, but as we'll see it's a little harder to get a reference to the underlying data source control if that needs to be updated.

For clarity I've explicitly broken out each of the objects here: As you can see getting the PK is now easy - it's simply available as the Command Argument and so it's easy to get context to the underlying data.

In Code Behind you have to do a bit of work though if you want to retrieve the proper context from a Data Item.

Net or in other words attached mouse double click event handler to Grid View Row in ASP.The following does not work: because it's not a template container.There is a Data Text Field that can be used to display a dynamic value (ie.But the handling of the Grid View Command Argument is quite different.First here's the implementation of a couple of Link Buttons in the template I can specify a command argument which is nice because it lets me be very concise about what data I want to pass to the Row Command event.

Leave a Reply