* will be thrown.
* @param pForce whether non-empty columns should be deleted or not.
*/
public void deleteColumn(GridField pField, int pPosition, boolean pForce) {
if (pPosition < 0 || pPosition >= columns) {
UsageException errorVar = new UsageException("pPosition must be in the range (0->" + (columns-1));
ErrorMgr.addError(errorVar);
throw errorVar;
}
int count = pField.getComponentCount();
// Disable the collapse-on-delete feature temporarily, otherwise the logic becomes more