Display images in a datagrid
Posted on 2006-06-13
I have a datagrid displaying records from a SQL Table. Each record has a type. According to the type of the record I want to display an image in the datagridrow. How do I do this?
eg: row 1 has type CAT1, row 2 has type CAT2 and row 3 has type CAT3. In the datagrid, instead of the text CAT1 it should show an image of a car, instead of the text CAT2 it should show the image of a bike and instead of CAT3 it should show an image of a pedestrian.