use Hyperlinkfield in Gridview
<asp:gridview id="OrdersGridView"
datasourceid="OrdersSqlDataSource"
autogeneratecolumns="false"
runat="server">
<columns>
<asp:hyperlinkfield datatextfield="Computer"
datatextformatstring="{0:c}"
datanavigateurlfields="ProductID"
datanavigateurlformatstring="~\computer.aspx?"
headertext="Price"
target="_blank" />
<asp:hyperlinkfield datatextfield="Accountant"
datatextformatstring="{0:c}"
datanavigateurlfields="ProductID"
datanavigateurlformatstring="~\Accountant.aspx?"
headertext="Price"
target="_blank" />
</columns>
</asp:gridview>
Further Reference
Hyperlinkfield in Gridview
and
this