/// public override void InitializeCell(TableCell cell, int columnIndex, ListItemType itemType) { base.InitializeCell(cell, columnIndex, itemType); if(itemType == ListItemType.Header || itemType == ListItemType.Footer || itemType == ListItemType.Pager || itemType == ListItemType.Separator) return; cell.CssClass += " sortCol"; StringBuilder sb = new StringBuilder(); sb.AppendFormat("<span idx=\"{0}\">", _rowIdx); if(!string.IsNullOrEmpty(ImageUrl) && ImageText != ESWCtrls.ImageText.TextOnly) sb.AppendFormat("<img src=\"{0}\" alt=\"Sort Item\" />", cell.ResolveUrl(ImageUrl)); if(!string.IsNullOrEmpty(Text) && ImageText != ESWCtrls.ImageText.ImageOnly) sb.AppendFormat( "{0}",Owner.Page.Server.HtmlEncode(Text)); sb.Append("</span>"); Literal l = new Literal(); l.Text = sb.ToString(); cell.Controls.Add(l); ++_rowIdx; }