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.
|