protected void ASPxGridView1_CustomFilterExpressionDisplayText(object sender, DevExpress.Web.CustomFilterExpressionDisplayTextEventArgs e) { ASPxLabel lbl = ASPxGridView1.FindTitleTemplateControl("ASPxLabel1") as ASPxLabel; lbl.Text = e.DisplayText; Control c = lbl.Parent; if (e.DisplayText != String.Empty) { c.Controls.AddAt(1, new LiteralControl("<a style=\"font-size:small\" href=\"#\" onclick=\"grid.ApplyFilter();\">Clear</a> :: ")); } else { c.Controls.RemoveAt(1); } }