tsay
asked on
Display images in a datagrid
Hey,
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.