1.Add this code to aspx page
<asp:GridView ID="GVClientCaseList" runat="server" AutoGenerateColumns="False"
Width="781px" BorderWidth="1px" GridLines="None" CssClass="inputSubmitBtnPrpl_2"
PagerSettings-Mode="Numeric" AllowPaging="True" PageSize="20"
AllowSorting="True"
onpageindexchanging="GVClientCaseList_PageIndexChanging" >
<RowStyle BackColor="#E9E6F0" ForeColor="#4A3C8C" />
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<Columns>
<asp:TemplateField HeaderText="Survey">
<ItemStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:HyperLink ID="hlUrlNA" runat="server" NavigateUrl='<%#FormatUrlSurvey(Eval("WarrantID"))%>'
Text='<%# Eval("WarrantID")%>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="WarrantID" HeaderText="Fullref">
<HeaderStyle ForeColor="White" Width="15%" />
<ItemStyle HorizontalAlign="left" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="ClaimantName" HeaderText="Claimant" ItemStyle-HorizontalAlign="center"
ItemStyle-CssClass="alignGridText" ReadOnly="true">
<HeaderStyle ForeColor="White" />
<ItemStyle HorizontalAlign="Center" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="DefendantName" HeaderText="Defendant" ItemStyle-HorizontalAlign="center"
ItemStyle-CssClass="alignGridText" ReadOnly="true">
<HeaderStyle ForeColor="White" />
<ItemStyle HorizontalAlign="Center" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
</Columns>
</asp:GridView>
2.In Code behind page add this function
protected string FormatUrlSurvey(object cid)
{
return "CaseDetails.aspx?WarrantID=" + cid.ToString();
}
<asp:GridView ID="GVClientCaseList" runat="server" AutoGenerateColumns="False"
Width="781px" BorderWidth="1px" GridLines="None" CssClass="inputSubmitBtnPrpl_2"
PagerSettings-Mode="Numeric" AllowPaging="True" PageSize="20"
AllowSorting="True"
onpageindexchanging="GVClientCaseList_PageIndexChanging" >
<RowStyle BackColor="#E9E6F0" ForeColor="#4A3C8C" />
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<Columns>
<asp:TemplateField HeaderText="Survey">
<ItemStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:HyperLink ID="hlUrlNA" runat="server" NavigateUrl='<%#FormatUrlSurvey(Eval("WarrantID"))%>'
Text='<%# Eval("WarrantID")%>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="WarrantID" HeaderText="Fullref">
<HeaderStyle ForeColor="White" Width="15%" />
<ItemStyle HorizontalAlign="left" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="ClaimantName" HeaderText="Claimant" ItemStyle-HorizontalAlign="center"
ItemStyle-CssClass="alignGridText" ReadOnly="true">
<HeaderStyle ForeColor="White" />
<ItemStyle HorizontalAlign="Center" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="DefendantName" HeaderText="Defendant" ItemStyle-HorizontalAlign="center"
ItemStyle-CssClass="alignGridText" ReadOnly="true">
<HeaderStyle ForeColor="White" />
<ItemStyle HorizontalAlign="Center" CssClass="alignGridText"></ItemStyle>
</asp:BoundField>
</Columns>
</asp:GridView>
2.In Code behind page add this function
protected string FormatUrlSurvey(object cid)
{
return "CaseDetails.aspx?WarrantID=" + cid.ToString();
}