title: "Cannot delete a column that contains controls" Delphi XE3
body: <blockquote>
    <p>Project Businessware.exe raised an exception class EGridPanelException with Message "Cannot delete a column that contains controls"</p>
  </blockquote>
  
  <p>I am always getting this error whenever I tried to execute the program, then it shows an option buttons such as "Break", "Continue" and "Help", I already got this error before and the solution I opted was to delete the ExplicitWidth and ExplicitHeight comprises by the affected component, I also removed ColumnCollection declared under GridPanel1 and everything became alright, but now it is showing again and the solution I applied previously is not working anymore. Do you have any other solution for this?Why am I getting this error when I don't have any updates made in .pas and .dfm file?</p>
  
  <p>Other information is when I clicked "Break", it points out to this method:</p>
  
  <pre><code>procedure TColumnCollection.Notify(Item: TCollectionItem; Action: System.Classes.TCollectionNotification);
  begin
     inherited;
     if (Action = System.Classes.TCollectionNotification.cnExtracting) 
        and not (csDestroying in Owner.ComponentState) and
        not (csUpdating in Owner.ComponentState) then
          if not Owner.IsColumnEmpty(Item.Index) then
            raise EGridPanelException.Create(sCannotDeleteColumn)
     else
       Owner.UpdateControlsColumn(Item.Index);
  end;
  </code></pre>
  
  <p>Any help will be much appreciated. Thanks</p>