I am making a GUI in aspx using a grid view for a database. I was wondering if there is a way to hyperlink each row to edit in a different window? I do not want the rest of the table to be shown just the row that the user wants to edit. I also want the row to be in edit mode once it enters into the new window. I have it now where it opens up the row by itself in a new window but the user still has to click the edit button. Here is the code I am using for that.
<asp:TemplateField HeaderText="Edit">
<ItemTemplate>
<asp:LinkButton ID="lnkname" runat="server" Text='<%#Eval("ID") %>' PostBackUrl='<%#"~/editDetails.aspx?ID="+Eval("ID") %>' >
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
This does what I want to a point, however I want it to be in edit mode when it hits the new page. Any ideas would be great.
I would suggest you to open the editable record in a popup window. Just look at this example
Master-Detail with the GridView, DetailsView and ModalPopup Controls
Otherwise if you want to do it your way, to open the editable record in new page, you can add DetailsView/FormView in your new page and show the record in an editable form. Have a look at this example GridView-DetailsView (Master/Detail) Control