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

Show Images from the DataBase using RadGrid

1 Answer 302 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 12 Mar 2013, 03:49 AM
I can't show the image from the database

Grid DataSource = LinqSource;

GridBoundColumn:  DataField = "ImgID" DataType : system.int
GridBinaryImageColumn : DataField="Img" DataType: system.string

I get the  img id but image is not diplayed in my grid

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Mar 2013, 04:30 AM
Hi,

One suggestiom is that you can use GridImageColumn as shown below.
aspx:
<telerik:GridImageColumn DataType="System.String" DataImageUrlFields="CustomerID"
  DataImageUrlFormatString="IMG/{0}.jpg" AlternateText="Customer image" DataAlternateTextField="ContactName"
  ImageAlign="Middle" ImageHeight="110px" ImageWidth="90px" HeaderText="Image Column"
  FooterText="ImageColumn footer">
</telerik:GridImageColumn>

Thanks,
Shinu


Tags
Grid
Asked by
Ram
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or