href in datagridview

  • Thread starter Thread starter hula
  • Start date Start date
H

hula

Hello

can someone tell me if it's possible to add a href/link inside a
datagridview?
 
Hi Hula - hopefully this code snippet will give you an idea...

<asp:TemplateColumn HeaderText="Click The Hyperlink To Select">
<ItemTemplate>
<a title="Something" href='your_url_or_page_here <%#
DataBinder.Eval(Container, "DataItem.your_column_id_here") %>'>
<%# DataBinder.Eval(Container, "DataItem.your_column_name_here") %>
</a>
</ItemTemplate>
</asp:TemplateColumn>

This snippet will go inside the datagrid.

Best regards, Bonney
 
Bonney said:
Hi Hula - hopefully this code snippet will give you an idea...

<asp:TemplateColumn HeaderText="Click The Hyperlink To Select">
<ItemTemplate>
<a title="Something" href='your_url_or_page_here <%#
DataBinder.Eval(Container, "DataItem.your_column_id_here") %>'>
<%# DataBinder.Eval(Container, "DataItem.your_column_name_here") %>
</a>
</ItemTemplate>
</asp:TemplateColumn>

This snippet will go inside the datagrid.

Best regards, Bonney

Thanks Bonney

i forgot to mention i need it for windowforms ..

Also i did implement it on my own now, CellMove --> change MouseCursor,
CellClick-->Process.Start

Works ok now :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top