title: Delete row from gridpane and move the remaining rows up
body: <p>I have created a scene using GridPane as a component. It basically has 5 rows and 2 columns and i set labels in each cell. Now i have a problem that i need to delete one row depending on a condition. I am able to bind this using setManaged() or even setVisibleProperty() but this leaves an empty space on the UI 
  I would like the following rows to take up the empty space. Can this be acheived? Please help. ?Here is the fxml file 
  `</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import javafx.scene.*?&gt; &lt;?import javafx.geometry.*?&gt; &lt;?import javafx.scene.control.*?&gt; &lt;?import java.lang.*?&gt; &lt;?import javafx.scene.layout.*?&gt;
  
  &lt;AnchorPane fx:id="anchor1" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.lynden.fms.shipmentdetail.ui.ShipmentInfoTestController"&gt; &lt;children&gt;
        &lt;GridPane fx:id="gridPane" prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
           &lt;columnConstraints&gt;
              &lt;ColumnConstraints halignment="LEFT" minWidth="25.0" /&gt;
              &lt;ColumnConstraints halignment="LEFT" minWidth="25.0" /&gt;
           &lt;/columnConstraints&gt;
           &lt;rowConstraints&gt;
              &lt;RowConstraints minHeight="25.0" prefHeight="25.0" valignment="TOP" vgrow="ALWAYS" /&gt;
              &lt;RowConstraints minHeight="25.0" prefHeight="25.0" valignment="TOP" vgrow="ALWAYS" /&gt;
              &lt;RowConstraints minHeight="25.0" prefHeight="25.0" valignment="TOP" vgrow="ALWAYS" /&gt;
              &lt;RowConstraints minHeight="25.0" prefHeight="25.0" valignment="TOP" vgrow="ALWAYS" /&gt;
              &lt;RowConstraints minHeight="25.0" prefHeight="25.0" valignment="TOP" vgrow="ALWAYS" /&gt;
           &lt;/rowConstraints&gt;
           &lt;children&gt;
              &lt;Label fx:id="label1" styleClass="info-label-font" text="Label2" GridPane.rowIndex="1"&gt;
                 &lt;GridPane.margin&gt;
                    &lt;Insets right="5.0" /&gt;
                 &lt;/GridPane.margin&gt;
              &lt;/Label&gt;
              &lt;Label fx:id="value1" styleClass="info-value-label-font" text="Value111111" GridPane.columnIndex="1"&gt;
                 &lt;padding&gt;
                    &lt;Insets left="10.0" /&gt;
                 &lt;/padding&gt;
              &lt;/Label&gt;
              &lt;Label fx:id="value3" styleClass="info-value-label-font" text="Date/Time" GridPane.columnIndex="1" GridPane.rowIndex="2"&gt;
                 &lt;padding&gt;
                    &lt;Insets left="10.0" /&gt;
                 &lt;/padding&gt;
              &lt;/Label&gt;
              &lt;Label fx:id="label0" styleClass="info-label-font" text="Label1"&gt;
                 &lt;GridPane.margin&gt;
                    &lt;Insets right="5.0" /&gt;
                 &lt;/GridPane.margin&gt;
              &lt;/Label&gt;
              &lt;Label fx:id="label4" styleClass="info-label-font" text="Label4" GridPane.rowIndex="3" /&gt;
              &lt;Label fx:id="label5" styleClass="info-label-font" text="Label5" GridPane.rowIndex="4" /&gt;
              &lt;Label fx:id="value4" styleClass="info-value-label-font" text="Value here " GridPane.columnIndex="1" GridPane.rowIndex="3"&gt;
                 &lt;padding&gt;
                    &lt;Insets left="10.0" /&gt;
                 &lt;/padding&gt;
              &lt;/Label&gt;
              &lt;Label fx:id="value5" styleClass="info-value-label-font" text="Value" GridPane.columnIndex="1" GridPane.rowIndex="4"&gt;
                 &lt;padding&gt;
                    &lt;Insets left="10.0" /&gt;
                 &lt;/padding&gt;
              &lt;/Label&gt;
              &lt;VBox fx:id="value2" prefWidth="100.0" styleClass="info-value-label-font" stylesheets="@../styles/ShipmentDetail.css" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS"&gt;
                 &lt;padding&gt;
                    &lt;Insets left="10.0" /&gt;
                 &lt;/padding&gt;
              &lt;/VBox&gt;
              &lt;Label fx:id="label3" styleClass="info-label-font" text="Label3" GridPane.rowIndex="2"&gt;
                 &lt;GridPane.margin&gt;
                    &lt;Insets right="5.0" /&gt;
                 &lt;/GridPane.margin&gt;
              &lt;/Label&gt;
           &lt;/children&gt;
        &lt;/GridPane&gt;    &lt;/children&gt; &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>'</p>