Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > create a hyperlink?

Reply
Thread Tools

create a hyperlink?

 
 
Fetty
Guest
Posts: n/a
 
      05-31-2005
I have a dynamically created child grid inside of a grid. Each cell may or
may not have a date in it. How do I make that date a hyperlink? Eack column
has to have different links?

--
David Fetrow
Helixpoint LLC
717-571-9335
http://www.helixpoint.com


 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      05-31-2005
Hi Fetty,

You can implement your logic in datagrid_ItemDataBound event

if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
DataRowView drv = (DataRowView)e.Item.DataItem; // data source as
dataset/datatable/dataview
HyperLink link = (HyperLink)e.Item.Cells[link_cell_index];
link.NavigateUrl = dynamicUrl(drv["data_field"]);

}

HTH

Elton Wang



"Fetty" <> wrote in message
news:...
> I have a dynamically created child grid inside of a grid. Each cell may or
> may not have a date in it. How do I make that date a hyperlink? Eack

column
> has to have different links?
>
> --
> David Fetrow
> Helixpoint LLC
> 717-571-9335
> http://www.helixpoint.com
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Api to create document and add,edit,delete text and t Krithika San Ruby 3 11-14-2009 09:29 PM
How can i create new users without utilizing the create user wizar prady ASP .Net 2 12-29-2007 10:46 PM
Can I create a Create .NET 1.1 project in VS2005? JB ASP .Net 1 12-14-2007 10:53 AM
How to create python script which can create csv we file with relationship Sonu Python 1 08-03-2007 01:08 PM
problem: create element in create element Iulian Ilea Javascript 4 12-17-2006 12:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57