Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
903
Adding an image column (image to display is a datasource column value)
posted

Hi everybody,

 

I set a datasource on a form and added few string columns. I added a wingrid and linked it with datasource. Works fine. At runtime, I set my entities list object (loaded with Entity Framework) and the strings are displayed within the grid.

 

I wanted to add a new visual indicator so I added an image property getImage to my partial Entoty class.

I return differents ressources (png files) given the data contained in the entity.

 

problem is that even if I return sometimes image A, then B, then C, ALL rows will have the last image returned displayed (in each row).

 

I don't understand how I could avoid this behavior as for me each row are independant and linked to different entities objects in the datasource.

 

Can you lpease advise me, is it possible to display easily differents images (on different rows) for a same column  ?

 

Regards