Images in Grid

hi,



How do I add images for some cells and not display an image for other cells based on a value I get back from the database?



I have this right now…



header.AppendLine("");

header.AppendLine(“Run”);

header.AppendLine(“px”);

header.AppendLine("");



header.Append("");

if (diplayImage == “0”) header.AppendLine("");

else header.AppendLine("/images/ask.gif^Ask^javascript:runreg(" + iRow + “)^_self”);

header.AppendLine("");



But I am getting an missing image when i don’t populate it with an image path. How can I just get an empty cell?


You can change type of a particular cell in the xml format:


if (diplayImage == “0”) header.AppendLine("<cell id=‘Ask’ type=‘ed’>");