Is there a way to get the value from gridview and then paste it in a textbox in formview? I’m trying to get the selected datakeys like ID, firstname, lastname and insert it on a textbox in formview (i’ve set the defaultmode to ‘insert’). I’ve tried it with a textbox by using the SelectedIndexMethod but how can I do it in formview textbox while in ‘insert’ mode?
Help would be much appreciated!
Thanks in advance!
The
GridView1.SelectedDataKey.Valuewill give you what you are looking for.In your
formView, it will be like:Edit: