Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link to item from datagrid

Status
Not open for further replies.

aceriano

IS-IT--Management
Oct 18, 2007
8
0
0
SE
Hey guys!

I need som help getting a hyperlinkcolumn to link to an item in a datagrid.

What I want to do is to use the itemcreated event to set the link in my hyperlink column to the path of the item in the same row.

Hyperlinkcol|col1|col2|col3
-------------------------------------------
LinkToItem |Data|Data|Data


How do I get the ID from the item and use it to set the NavigationUrl property.


The event I use:
void grid_ItemCreated(object sender, DataGridItemEventArgs e)
{
//Set NavigationUrl prop.

}

So, if you can help me along the way to a solution I would be greatful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top