PC Review


Reply
Thread Tools Rate Thread

Datagrid-hyperlink problem

 
 
=?Utf-8?B?UmFqU0I=?=
Guest
Posts: n/a
 
      21st May 2004
* I created a datagrid called dg_FA with data populated from a table called for ex. tbl_FocusArea.
* The table "tbl_FocusArea" has a field called "FA_ID" which has a link to a column called "steps_FA_ID" in the table "tblSteps"
* I need to put a hyperlink/imagebutton/linkbutton in a column, ONLY if that FA_ID exists in that second table "tblSteps".
* Otherwise I do not need to put that link

Any help would be appreciated. THANKS.
 
Reply With Quote
 
 
 
 
Mark Miller
Guest
Posts: n/a
 
      21st May 2004
Try putting a placeholder control in the DataGrid column. Then use the
OnItemDataBound event to check the record. If your conditions are met then
add the button to the placeholder control, otherwise leave it blank.


"RajSB" <(E-Mail Removed)> wrote in message
news:917DE411-5A1D-4718-9BD0-(E-Mail Removed)...
> * I created a datagrid called dg_FA with data populated from a table

called for ex. tbl_FocusArea.
> * The table "tbl_FocusArea" has a field called "FA_ID" which has a link to

a column called "steps_FA_ID" in the table "tblSteps".
> * I need to put a hyperlink/imagebutton/linkbutton in a column, ONLY if

that FA_ID exists in that second table "tblSteps".
> * Otherwise I do not need to put that link.
>
> Any help would be appreciated. THANKS.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to add a hyperlink column to asp.net datagrid - where only one value is a hyperlink davetichenor Microsoft ASP .NET 1 30th Oct 2006 03:57 PM
Hyperlink in datagrid Frederik Vanderhaeghe Microsoft VB .NET 0 11th Apr 2006 03:27 PM
datagrid hyperlink column problem chris@ctlsoft.com Microsoft ASP .NET 0 12th Feb 2006 11:46 PM
Datagrid Hyperlink Sonny Sablan Microsoft ASP .NET 1 18th Jan 2006 02:24 PM
Problem viewing text of hyperlink column in datagrid jeguillo@ems.jsc.nasa.gov Microsoft VB .NET 1 16th Dec 2004 06:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:49 PM.