How can we show picture in datagrid?
Thank you,
Printable View
How can we show picture in datagrid?
Thank you,
You could just store the name of the image in the database, like this (image1.jpg), then in your datagrid you can just do something like this
Once you filled in the field name, it would look like this when the page is displayed.VB Code:
<asp:TemplateColumn HeaderText="HeaderText"> <ItemTemplate> <img src='\images\<%# Databinder.Eval(Container.DataItem,"DatabaseFieldName")%>'> </ItemTemplate> </asp:TemplateColumn>
"images\image1.jpg"