Ext.Net.GridPanel.CheckAutoExpand C# (CSharp) Method

CheckAutoExpand() private method

private CheckAutoExpand ( ) : void
return void
        protected virtual void CheckAutoExpand()
        {
            if (this.AutoExpandColumn.IsNotEmpty())
            {
                if (this.AutoExpandColumn.Test("^\\d+$"))
                {
                    return;
                }

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

                if (!found)
                {
                    throw new ArgumentException("The AutoExpand Column with ID='".ConcatWith(this.AutoExpandColumn,"' was not found."));
                }
            }
        }