HyperLink column in gridview

Santosh0683
Posted by Santosh0683 under ASP.NET category on | Views : 3526
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
Height="1px" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
Width="700px">
<Columns>
<asp:BoundField DataField="Designation" HeaderText="Designation">
</asp:BoundField>
<asp:BoundField DataField="ContactNo" HeaderText="Contact No.">
<ItemStyle Width="100px" />
<HeaderStyle Width="100px" />
</asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="CandidateAppId" DataNavigateUrlFormatString="~/Recruitment/frmResume1.aspx?Id={0}"
HeaderText="Attach" Text="View">
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="50px" />
</asp:HyperLinkField>
<asp:TemplateField HeaderText="View">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle HorizontalAlign="Center" Width="50px" />
<ItemTemplate>
<asp:ImageButton ID="ImageView" runat="server" ImageUrl="~/Image/img_edit.png"
OnClick="ImageView_Click" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Delete">
<EditItemTemplate>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle Width="50px" />
<ItemTemplate>
<asp:ImageButton ID="ImgDelete" runat="server" ImageUrl="~/Image/img_delete.png"
OnClick="ImgDelete_Click" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

Comments or Responses

Login to post response