Categories | Question details Back To List | ||
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("<head>"); header.AppendLine("<column width='45' type='img' align='center' >Run</column>"); header.AppendLine("<settings><colwidth>px</colwidth></settings>"); header.AppendLine("</head>"); header.Append("<row id='" + rowid + "'>"); if (diplayImage == "0") header.AppendLine("<cell id='Ask'></cell>"); else header.AppendLine("<cell id='Ask'>/images/ask.gif^Ask^javascript:runreg(" + iRow + ")^_self</cell>"); header.AppendLine("</row>"); 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? Answer posted by dhxSupport on May 11, 2009 04:14 You can change type of a particular cell in the xml format: if (diplayImage == "0") header.AppendLine("<cell id='Ask' type='ed'></cell>"); |