A
Adam The Generic
Hi All,
in a gridview , we can set some fields as a hyperlink and it works if user
clicks that specific cell .
for example ..
//*******
<Columns>
<asp:TemplateField HeaderText="Product Name" >
<ItemTemplate>
<asp:HyperLink ID="Label1" Runat="Server"
NavigateUrl='<%#"~/ProductDetails.aspx?ProductCode="+ Eval("STOCK_CODE")%>'
Text='<%# Eval("STOCK_NAME") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="QUANTITY" HeaderText="Quantity" />
<asp:BoundField DataField="FIRM" HeaderText="Made By" />
</Columns>
//********
is it possible to set entire row as a hyperlink ?
Thanks in advance.
in a gridview , we can set some fields as a hyperlink and it works if user
clicks that specific cell .
for example ..
//*******
<Columns>
<asp:TemplateField HeaderText="Product Name" >
<ItemTemplate>
<asp:HyperLink ID="Label1" Runat="Server"
NavigateUrl='<%#"~/ProductDetails.aspx?ProductCode="+ Eval("STOCK_CODE")%>'
Text='<%# Eval("STOCK_NAME") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="QUANTITY" HeaderText="Quantity" />
<asp:BoundField DataField="FIRM" HeaderText="Made By" />
</Columns>
//********
is it possible to set entire row as a hyperlink ?
Thanks in advance.