code: private static void configureColumnOrdersAndHiddenFields(final String[] columnOrder, final String[] hideColumns,
  			final Grid grid) {
  		if (columnOrder != null) {
  			grid.setColumnOrder(columnOrder);
  		}
  
  		if (hideColumns != null) {
  			for (final String o : hideColumns) {
  				grid.removeColumn(o);
  			}
  		}
  	}
docs: Configure column orders and hidden fields.
  
  @param columnOrder
  the column order
  @param hideColumns
  the hide columns
  @param grid
  the grid