public void removeColumnModelByName(String columnName){
  if (TextUtils.isEmpty(columnName)) {
    return;
  }
  int indexToRemove=-1;
  for (int i=0; i < columnModels.size(); i++) {
    ColumnModel columnModel=columnModels.get(i);
    if (columnName.equalsIgnoreCase(columnModel.getColumnName())) {
      indexToRemove=i;
      break;
    }
  }
  if (indexToRemove != -1) {
    columnModels.remove(indexToRemove);
  }
}

public void removeColumnModelByName ( String columnName ) { if ( TextUtils . isEmpty ( columnName ) ) { return ; } int indexToRemove = - 1 ; for ( int i = 0 ; i < columnModels . size ( ) ; i ++ ) { ColumnModel columnModel = columnModels . get ( i ) ; if ( columnName . equalsIgnoreCase ( columnModel . getColumnName ( ) ) ) { indexToRemove = i ; break ; } } if ( indexToRemove != - 1 ) { columnModels . remove ( indexToRemove ) ; } }
remove a column model by the specified column name .
