Home » FAQ » ASP.NET » DataGrid » How to display an image field in each row of 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> ...
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with