Cell.Controls.Add( ??? )

  • Thread starter Thread starter Rob Meade
  • Start date Start date
R

Rob Meade

Hi all,

I would like to add more than one object to a table cell using the above, in
this case some text and a hyperlink.

I am writing the table row/cell programitcally and what to have something
like this:

Owner: Rob Meade

Where Rob Meade is a hyperlink.

I've created the hyperlink programmatically,and the text is usually a case
of Cell.text = etc

I know I cant do Cell.Controls.Add("Owner: " & Hyperlink), so is there
another way to add these two items?

Any info would be appreciated.

Regards

Rob
 
...
Are you sure you are on the right track? Looks like you need a datagrid
with
a template column.

Hi Elyahu,

Thanks for your reply..

A datagrid was considered for what I'm doing but I decided not to in the
end, I have found that if I use a Literal control I can achieve what I want
to do.

Thanks again for the reply.

Regards

Rob
 
Rob,

Are you sure you are on the right track? Looks like you need a datagrid with
a template column.

Eliyahu
 
Rob said:
Hi all,

I would like to add more than one object to a table cell using the
above, in this case some text and a hyperlink.

I am writing the table row/cell programitcally and what to have
something like this:

Owner: Rob Meade

Where Rob Meade is a hyperlink.

I've created the hyperlink programmatically,and the text is usually a
case of Cell.text = etc

I know I cant do Cell.Controls.Add("Owner: " & Hyperlink), so is there
another way to add these two items?

Any info would be appreciated.

Regards

Rob

You need to add *two* controls to that cell:
1) a Label with the text "Owner: "
2) a Hyperlink with the correct text and NavigateURL

an other way it to add a Literal with the correct html for text & link

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top