Ext.Net.GridPanelBase.OnPreRender C# (CSharp) Method

OnPreRender() private method

private OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnPreRender(EventArgs e)
        {
            if (this.AutoExpandColumn.IsNotEmpty())
            {
                bool found = false;
                ColumnBase foundColumn = null;

                foreach (ColumnBase column in this.ColumnModel.Columns)
                {
                    if (column.ColumnID == this.AutoExpandColumn)
                    {
                        found = true;
                        break;
                    }

                    if (column.DataIndex == this.AutoExpandColumn)
                    {
                        foundColumn = column;
                    }
                }

                if (!found && foundColumn != null)
                {
                    foundColumn.ColumnID = this.AutoExpandColumn;
                }
            }

            // TODO: Ask Geoffrey: Is it still required??? At this moment comment out
            //if (!this.DesignMode && RequestManager.IsIE6)
            //{
            //    this.ResourceManager.RegisterClientStyleBlock("grid-header-offset-fix", ".x-grid3-header-offset {width: auto;}");
            //}

            this.CheckStore();

            base.OnPreRender(e);
        }