Or the other way is to loop through each row in the datatable before you send it to the gridview
DIm newDt as new datatable
for each dbrow as string in dt.rows
dbrow.Item("field") = "<a href='viewQuote.aspx'>Link
newDt.rows.add(dbrow)
Next
ofcourse my first approach is the best if its ASP.NET with a gridview
Main Topics
Browse All Topics





by: adam_pedleyPosted on 2007-10-27 at 18:34:29ID: 20163393
I imagine the reason you want to set the last column a hyperlink because you want to have the hyperlink in the GridView
" & Eval("fieldname") & "'>" & Eval("otherfieldname") & "</a>" %>
Which project type are you using ASP.NET or Windows Application
if its ASP.NET in the markup you can go
<asp:TemplateField>
<ItemTemplate>
<%# "<a href='viewQuoteID.aspx?ID=
</ItemTemplate>
</asp:TemplateField>
just a note that the # could be an = sign (i currently cant remember which one it is)
<asp