I'm using the following code to set image for each cell depending on the string value

 _gvSearchRes.CustomRowCellEdit += (sender, e) => {
    GridView view = sender as GridView;
    if (e.Column.FieldName == "HASATTACHMENT")
    RepositoryItemTextEdit te = new RepositoryItemTextEdit();
    te.ContextImage = (Bitmap)myparser.renderedvalue(e.CellValue.ToString());
    e.RepositoryItem = te;

This works,but the string element already there is not removed.The image is added before the string. Is there a way to do this while preserving the string value behind another view? I need the string value later eg:User clicks the cell.

enter image description here

0 Answers