I have a datagrid that is using a custom user control for insert/edit. When the user clicks 'edit' on a row I want to pass the Id datakey into my user control so that I can use it to do a db lookup. I'm sure it can be done but can't figure out how. Can anyone provide me with a solution?
Is there an automated way to pass the datakey to the user control? I'm currently passing it as a session variable but I wonder if there's another (better) option?