Get datakey value gridview rowupdating event

But when I do it in the Row Command argument, I am always getting the attached error. Thanks, Peter Funwithdotnet, I changed the code, and now deleting an item is throwing the following error The Grid View 'Edit Grid' fired event Row Deleting which wasn't handled.

Your suggestion seems to improve the situation however - The rows are being disabled !

Hi I put gridview control and edit template when i edit in hyperlink in gridviewbut did not find control in editemplate dropdown list how to find controlthis I need how to findcontrol editemplate control in my gridview rowediting eventi try this code but return null value any one post this code Client Side================Refer this link is: After setting new edit index you need to bind the data source with grid view...

when I execute an On Selected Index Changed in the Grid (for when I load my data), they datakey is passed fine.

aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.

I am trying to update a record in a Gridview in VB. Specifically, when the user presses the "Delete" link in the table, I am trying to change a column in my database from 'enabled' to 'disabled'. I am just trying to get the Datakey for the record, and get the value for the Gamenum for that record.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.

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.

Search for get datakey value gridview rowupdating event:

get datakey value gridview rowupdating event-85get datakey value gridview rowupdating event-16get datakey value gridview rowupdating event-13

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “get datakey value gridview rowupdating event”