예제 #1
0
        private void RenderHeaderText(HtmlTextWriter writer)
        {
            if (string.IsNullOrEmpty(Header))
            {
                writer.Write("Empty header");
            }
            else
            {
                writer.Write(HttpUtility.HtmlEncode(Header));
            }

            if (BaseColumn != null && BaseColumn.CustomRenderInHeader != null)
            {
                BaseColumn.CustomRenderInHeader(this, writer);
            }
            else if (Childs.Count == 1 && Childs[0].HideInHeader && Childs[0].BaseColumn != null && Childs[0].BaseColumn.CustomRenderInHeader != null)
            {
                Childs[0].BaseColumn.CustomRenderInHeader(this, writer);
            }
        }