Write something like this in GridView > Columns
<asp:TemplateField HeaderText="Edit">
<ItemTemplate>
<a href="EditRecord.aspx?id=<%# Eval("Id") %>" title="Edit">Edit</a>
</ItemTemplate>
</asp:TemplateField>
Here I am assuming that EditRecord.aspx is the page where you want to actually edit the record and Eval("
Id ") is the primary key of your records you are displaying in the GridView.
On the EditRecords.aspx page, retrieve the id querystring and fetch that particular record from the database where id is the value you are getting from the querystring and populate in the texboxes to edit.
Hope this helps.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Naveenrohillamca, if this helps please login to Mark As Answer. | Alert Moderator