I would like to add an image called CheckImage.png to a field labeled pldg_complete if the field has a value of 1.
If it has a value of 0 then I would like to display an image called NoCheckImage.png for that row in the GridView Control.
Is this possible and if so how?
Please see my CodeBehind for retrieving the data to the GridView Control.
protected void RetrieveAllPledgeParticipants()
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["WellnessChoice"].ConnectionString))
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "WellnessChoiceAdmin_RetrieveAllPledgeParticipants";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = conn;
DataTable dtPledgeParticipants = new DataTable();
SqlDataAdapter adp = new SqlDataAdapter();
adp.SelectCommand = cmd;
gv_Pledge.DataSource = dtPledgeParticipants;
catch (Exception ex)