I have a gridview with a hyperlinkfield column say the grid has 10 rows I am iterating through the rows to get the text from each the hyperlinkField column but it gives empty value though the cell has a value inside it. Any help is appreciated Thanks in advance
Loading
neeraj sharmaPosted Dec 22, 2008, 8:54 AM
rajeev plPosted Dec 20, 2008, 10:11 PM
there is no hyperlink control its a hyperlinkfield check the columns list below any i idea to get the text from hyperlinkfield... check cloumn list below
<Columns> <asp:BoundField DataField="TransDate" HeaderText="Trans Date" >asp:BoundField> <asp:HyperLinkField DataTextField="OfferCode" HeaderText="Promotional Code" DataNavigateUrlFields="OfferCode" DataNavigateUrlFormatString="~/Reports/Admin.aspx?id={0}" /> <asp:BoundField DataField="Currency" HeaderText="Currency" >asp:BoundField> <asp:BoundField DataField="Remarks" HeaderText="Remarks" >asp:BoundField> <asp:BoundField DataField="ExportStatus" HeaderText="Export Status">asp:BoundField> <asp:BoundField DataField="ExportDate" HeaderText="Export Date">asp:BoundField> Columns>Pankaj GuptaPosted Dec 19, 2008, 2:23 AM