2
Reply

Add image template column in asp.net 2.0 gridview control.

arul

arul

Aug 13 2008 6:28 AM
6.2k

i need to add image template column in my asp.net 2.0 gridview control.

this is my code

  for (int i = 0; i < arrTemplateDataList.Count; i++)
                    {
                        if (!colStrGetinputPCData.Contains(arrTemplateDataList[i].ToString()))
                        {
                            colStrComplianceSW.Add(arrTemplateDataList[i].ToString());
                        }
                        GridComplianceSW.DataSource = colStrComplianceSW;
                        GridComplianceSW.DataBind();
                    }

IF condition is satiesfied i need to add one image else add another image ..can  you please help me...

thanks in advance..


Answers (2)