I'm a bit confused about the syntax in setting the HyperLinkField in a GridView control.
I'm using Visual Studio 2008. I'm a VB programmer.
I have a page with a GridView on it trying to set up a HyperLink field.
I have a table with three fields: TAG_NUMBER, PM_Procedure, and the HyperLinkField: Link.
The PM_Procedure field holds the name of a word document file: Pm010.doc.
The Link holds the link: file:///H:/CLINENG/Shared/DOCUMENTS/PMPROC/Pm010.doc
When I display the page it shows the link, it's underlined, but the there is no hand cursor over the link to click the link.
The code looks like this:
<Columns>
<asp:BoundField DataField="TAG_NUMBER" HeaderText="TAG_NUMBER"
SortExpression="TAG_NUMBER" />
<asp:BoundField DataField="PM_Procedure" HeaderText="PM_Procedure"
ReadOnly="True" SortExpression="PM_Procedure" />
<asp:HyperLinkField
HeaderText="PM_Link"
DataTextField="Link"
Text="PM_Link"
DataNavigateUrlFields="Link"
DataNavigateUrlFormatString="{0}">
<ItemStyle Font-Underline="True" />
</asp:HyperLinkField>
</Columns>
I need to know what the format string should be to link to the Word document file, not a page in the web.
Thanks.