This is a migrated thread and some comments may be shown as answers.

Adding Images

2 Answers 139 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Sacha
Top achievements
Rank 1
Sacha asked on 02 May 2012, 05:24 PM
Hi guys,

Hopefully a short and easy question. How do I add images to a RadListView? I've tried the below:

radListView1.Items.Add(Image.FromFile("C:\\images\\myLovelyPhoto.jpg"));

But it just gives me the time of object. IE. It shows a check box (as I have that set) plus "System.Drawing.Bitmap".

I'm probably missing out on something very obvious. I just want to list a number of images a be able to select them using either check boxes or radio buttons.

Thanks,

Sacha


2 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 03 May 2012, 01:52 PM
Hello, 

Please have a look at this area of the documentation which shows including an image during the ItemDataBound event. 
Hope that helps
Richard
0
Stefan
Telerik team
answered on 07 May 2012, 01:08 PM
Hi,

I am marking Richard's post as answer since this is the correct way to assign images to list view items.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
ListView
Asked by
Sacha
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or