Developer forum

Forum » Development » List control - An Image column

List control - An Image column

Diogo Lino
Reply
Hello,

I'm trying to put an image column in a List control with no success. I can't have elements of type "asp:Image" in Columns.

I've tried also adding an usual ListColumn and put on it an Image object, also with no success.

row.AddColumn(new Image() { ID = "flagImage", ImageUrl = GetFlagImageUrl(language.Id) });

Is there a way to workaround?


Thanks,
Diogo Lino


Replies

 
Pavel Volgarev
Reply
This post has been marked as an answer

Hi Diogo,


You can insert a raw HTML string containing your IMG tag by using the AddColumn method.

 

-- Pavel

Votes for this answer: 0
 
Diogo Lino
Reply

It worked!

Thanks!
 

Diogo Lino

 

You must be logged in to post in the forum