Rowupdating get datakey

This dictionary contains all fields in the row except the key fields. Time Entry Duration Hours FROM dbo.aspnet_starterkits_Time Entry TE inner join dbo.aspnet_starterkits_Project Categories CAT on TE. Category ID inner join dbo.aspnet_starterkits_Projects P on CAT. Time Entry User ID=(SELECT User Id FROM dbo.aspnet_Users WHERE User [email protected] Name)) Source pivot (max(Hours)for DOW in ([1],[2],[3],[4],[5],[6],[7]) ) as pvt" Old Values Parameter Format String="original_" Use the Old Values property (dictionary) to access the original values of the fields in the row to update.A Grid View Command Event Args object is passed to the event-handling method, which enables you to determine the command name and command argument of the button clicked. Thanks The OP has clearly mentioned the Row Updated event but if you'd like to suggest Row Updating - a page-level variable should be enough; beyond a postback a View State variable could be advised for the same page.event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.

We can achieve the same functionality using Datakeys.

I will click on the EDIT link in one of the grid view row. I will update the values and click update link in edit mode and edit mode closes. At this point I need to capture the datakey of the updated row into some variable Can someone please help me out with this?

Open Visual Studio 2008 and create a new Web Application.

Time Entry Date between dateadd(dd, -6, @Week Ending) and @Week Ending) AND TE.

Re-obtaining the List of objects via the utility method along with the index obtained from the event arg parameter is not an option because the List of objects may have changed.

Leave a Reply