Link to home
Start Free TrialLog in
Avatar of iepaul
iepaulFlag 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.

Avatar of prairiedog
prairiedog
Flag of United States of America image

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

ASKER

Status is a boundfield.
Is it possible to convert this BoundField into a TemplateField? TemplateField makes it easy to accomplish what you need.
Avatar of iepaul

ASKER

If it will still read the data from the status field of the database then I don't mind converting it.
Oh yes. Are you using Visual Studio 2005?
ASKER CERTIFIED SOLUTION
Avatar of prairiedog
prairiedog
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial