Datagr small dude

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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 said:
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...
 
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,
 
Back
Top