Get datakey value gridview rowupdating event

event is raised when a row's Update button is clicked, but after the Grid View control updates the row.A datakey represents the primary key field or field of a record that can uniquely identify it in a data-bound control.I have tried 5 different ways to get that value ...but I always am getting the same error (Index out of Range).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 !

I had a assignment I need to show only description and not ID. By using Datakeynames property you will get the selected row primary key. Some days back I got a query from one of my fellow, regarding a very normal situation I mean that’s the day to day task that we as a developers are doing.Here is the scenario Scenario: Consider you have a data grid view which show a list of products from northwind database and you want a link button which will edit the same grid view entry but in a separate page and on separate form with the help of the primary key which you may want to send to another page using query string or else.Fire Grid View's Row Updating event for Link Button Update.Fire Grid View's Row Canceling Edit event for Link Button Cancel.

Search for get datakey value gridview rowupdating event:

get datakey value gridview rowupdating event-40

I'm using a sqldatasource control to populate the grid and want to write the update code in the Row Updating event.

Leave a Reply

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

One thought on “get datakey value gridview rowupdating event”

  1. Girls from all age groups are online and chatting, waiting to talk with like minded people about what turns them on and makes them hot. Significant others sharing and broadcasting their sex lives to the world.

  2. Foot fetish domination Tranny exhibitionist in nylons Vinnie worships her feet Erotic tranny on bed Fully dressed and posing Sarah Ceylon and Claire Adams double team slave boy Forced foot adoration Attention to the feet Blonde masterful housewife trampling and humiliating he...