How to display an image field in each row of DataGrid

Platform: ASP.NET| Category: DataGrid

If the image field is a string representing a image file name, then:


...
<asp:TemplateColumn>
<ItemTemplate>
	<img src=’<%#DataBinder.Eval (Container.DataItem, 'Photo')%>’>
</ItemTemplate>
</asp:TemplateColumn>
...

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.