Avatar of iepaul
iepaul
Flag for Ireland asked on

Replace text on gridview with images

Hi,
I have a gridview showing our employee details.  One of the fields "Status" shows the last clocking event for the employee.  If the field contains "Code1" or "Code2" then I want the gridview to display a green checkmark image.  If the field contains "Code3" then the gridview should display a red x image.

ASP.NETVisual Basic.NET

Avatar of undefined
Last Comment
prairiedog

8/22/2022 - Mon
prairiedog

Is "Status" a label? A BoundFiled or TemplateField?
iepaul

ASKER
Status is a boundfield.
prairiedog

Is it possible to convert this BoundField into a TemplateField? TemplateField makes it easy to accomplish what you need.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
iepaul

ASKER
If it will still read the data from the status field of the database then I don't mind converting it.
prairiedog

Oh yes. Are you using Visual Studio 2005?
ASKER CERTIFIED SOLUTION
prairiedog

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.