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 !
I can get the value of the first field using " Select Command="SELECT @Week Ending Week Ending , Project , Project ID , Category , Category ID ,isnull(, 0) Sun ,isnull(, 0) Mon ,isnull(, 0) Tue ,isnull(, 0) Wed ,isnull(, 0) Thu ,isnull(, 0) Fri ,isnull(, 0) Sat from (select P.In this article I will share how to retrieve hidden value from Grid View Column. 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. 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... You can also indicate whether the exception was handled in the event-handling method by setting the On Row Updated Row Canceling Edit On Row Canceling Edit Row Deleted On Row Deleted Row Deleting On Row Deleting Row Editing On Row Editing Row Updating On Row Updating Grid View Class System.