Live Chat Icon For mobile
Live Chat Icon

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

Share on twitter
Share on facebook
Share on linkedin