A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.
Description: When I attempted to compile my existing code with the My SQL Connector/NET 6.1.2 is receive the following message: 'My Sql. I have found a link of that indicates that the developer Reggie Burnett has committed code to the 6.1 branch that removes Return Generated Identifiers code from Command program. My Sql Client; namespace Console Application3 Tony You need to fetch the command from the commandbuilder. Insert Command = insert Cmd; Changed the code as follows but still returning NULL for ID.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
Also, My SQL documentation still shows that this property is available and effective in obtaining auto-incremented columns. Data Field = "Activity Hours"; bfld Activity Hours. When all you've got is a Hammer, Every Problem looks like a Nail. Add(bfld Activity Date); Bound Field bfld Activity Hours = new Bound Field(); bfld Activity Hours. Add(bfld Activity Hours); Command Field cfld Delete Button = new Command Field(); cfld Delete Button. Here is the C#code to bind the data to the gridview Service1 My Service = new Service1(); ds Main Data = My Service. This can be beneficial to other community members reading the thread. Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.