Hyperlink in Datagrid in windows application

khan_zahid

Member
Joined
Feb 23, 2005
Messages
10
Programming Experience
1-3
Help

I have 1 column in my tabel which have path to files. I want to show that column in datagrid. I want that column to be a hyper link column so when i clik on that link that file should open.

Not in ASP.NET
 
hi Zahid,

Assuming you are using vb.net for your application following line can be put in your code where you declare your datagrid

<asp:hyperlinkcolumn headertext="Link Column" text="Link" headerstyle-horizontalalign="Center" itemstyle-horizontalalign="Center" DataNavigateUrlFormatString="../Path.aspx?PathVal={0}" DataNavigateUrlField="PathVal" target="_self" />

This will work for urls which has only one Query string.

hope this helps,
Vikram
 
Back
Top