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

Display Image from Path

1 Answer 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amr
Top achievements
Rank 1
Amr asked on 02 Jul 2010, 10:21 AM
Greetings,

I am new to the Grid control and have spent hours trying to do a very simple thing.  I also looked at lots of examples but still no success.

-------------------------------------------------------------------------------
I have a database table that has three fields, all text.  One field has a full path and name of an image that is already stored on the server.

I want to get the records and display that image inside the grid (one image for each row)

How can I do this in VB.NET?
-------------------------------------------------------------------------------

Thanks in advance,

Jimmy

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Jul 2010, 01:24 PM
Hello Jimmy,

You can use the GridImageColumn and set the DataImageUrlFields property to a field in the source that can be used to supply the image path and format it by setting the DataImageUrlFormatString property.

Have a look at the GridImageColumn section in the documetation to know more:
Column types


Thanks,
Princy.
Tags
Grid
Asked by
Amr
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or