By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,719 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

Datagr small dude

P: n/a
Hi,

I have a datagrid, for one hand..

And a DataTable Filled for the other hand..

to fill and show the datagrid i dont have any problems, but i would like to know how to create an hiperlink foreach row, in a specific column..

Any help will be grateful..

Kind Regards
Josema.
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Are you targeting the web or the windows environment?

IF you are using the web there are a couple of thing you can do, you can
define a HyperLinkColumn or you can define a TemplateColumn and inside
include a HyperLink or simply a <a> element with the correct href.
Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Josema" <an*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
Hi,

I have a datagrid, for one hand...

And a DataTable Filled for the other hand...

to fill and show the datagrid i dont have any problems, but i would like to know how to create an hiperlink foreach row, in a specific column...
Any help will be grateful...

Kind Regards.
Josema.

Nov 15 '05 #2

P: n/a
Using a TemplateColumn with an Hyperlink:
<asp:templatecolumn Visible="False">
<itemtemplate>
You can use this:
<asp:HyperLink NavigateUrl="theurl.aspx">Go here</asp:HyperLink>
OR this:
<a href="theurl.aspx">Go here</a>
</itemtemplate>
</asp:templatecolumn>
Using a HyperLink column:
<asp:HyperLinkColumn NavigateUrl="theurl.aspx">
Go here
</asp:HyperLinkColumn>

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"josema" <an*******@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
First Thanks for your fast reply...

My environment is web, its a web control Datagrid...

Do you have a little example of 2 lines, to see... or urls, articles, ....

Thanks Ignacio.
Regards.
Josema

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.