So when we use these special key words as the Command Name for the buttons in the Grid View, they automatically invoke the built in functionality of the Grid View when we click on the button.
As our code does not handle those events hence they throw an exception.
Detailsview and Gridview update event not firing Hi, I'm currently on my first 2.0 project so i'm sorry if some or all of my questions are simple/basic.After working with Data Grids so efficiently, I was scared that Grid Views were going to be a million times more complex. I suppose my eyes got big when I saw all the new properties and methods, and wanted to try them all out. Most articles I found were for hardcoded datasources (especially on MSDN, ugh) and didn’t really help me much, so this post will be referring to Grid Views with dynamically bound datasources. First, create a Grid View with three bound columns and an Update/Edit/Cancel (Command Field) column: Nothing in there should be shocking to anyone: all your events are handled, you have a Hyper Link Field that uses the Data Navigate URLFields property to insert a Product ID, and you have set your Data Key Names property to your hidden field which holds your Product ID. Because we are not using the Grid View’s built-in data model and are binding dynamically, the Grid View will not switch into and out of Edit Mode automatically.