diff options
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 036fe8b756..388d74aeee 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -4855,12 +4855,15 @@ public class Grid extends AbstractFocusable implements SelectionNotifier, } /** - * Sets the grid data source.<p> + * Sets the grid data source. + * <p> * - * <strong>Note</strong> Grid columns are based on properties and try to detect a correct converter for - * the data type. The columns are not reinitialized automatically if the container is changed, and if the same + * <strong>Note</strong> Grid columns are based on properties and try to + * detect a correct converter for the data type. The columns are not + * reinitialized automatically if the container is changed, and if the same * properties are present after container change, the columns are reused. - * Properties with same names, but different data types will lead to unpredictable behaviour. + * Properties with same names, but different data types will lead to + * unpredictable behaviour. * * @param container * The container data source. Cannot be null. @@ -4988,7 +4991,8 @@ public class Grid extends AbstractFocusable implements SelectionNotifier, + property + " with the header \"" + getColumn(property).getHeaderCaption() - + "\""); + + "\". " + + "Call removeAllColumns() before setContainerDataSource() if you want to reconfigure the columns based on the new container."); } if (!(datasource instanceof Sortable) |