In my sqlDataSource, I am running some code in the OnDeleting. In this code, I would like to send the value of the DataKeyField as a parameter.
This is the code that I have:
e.Command.Parameters(
???? = The value of the DataKeyField in the grid of the row that I just pressed the delete key for (Selected Row). The field is named "File_ID". I thought if I used something like e.Row.Cells.FromKey("File_ID").Value, it would work...but it doesn't.
Any help is greatly appreciated.
Hi algunderson,
I have tested your scenario and the event argument seems to return the correct cell value. You may also wish to try calling ToString() when passing it as a parameter.
You can find more information on using parameters with the SqlDataSource at:
http://msdn.microsoft.com/en-us/library/z72eefad.aspx#Y1140
Please contact me if you have any questions.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support