JorgeM
Industrious Poster
4,017 posts since Dec 2011
Reputation Points: 294
Solved Threads: 545
Skill Endorsements: 115
I dont have much time at the moment to give you a detailed answer, but I quickly copied this from a page that I previously worked on. In my particular example, I did not add any additional code in the code behind page to fill the gridview. I used a SQLDataSource control on the aspx page.
<asp:ImageField DataImageUrlField="status"
DataUrlFormatString="/images/{0}.png" HeaderText="Status">
</asp:ImageField>
The name of the picture file was stored in a table in a field called "status". As you can see, I used both the DataImageUrlField as well as DataUrlFormatString to supply the Image details.
If that's not useful, I'll try to get a working example.
JorgeM
Industrious Poster
4,017 posts since Dec 2011
Reputation Points: 294
Solved Threads: 545
Skill Endorsements: 115