Datagrid-hyperlink problem

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

Guest

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