how to addItem in grid , In grid Binding to Date

how to addItem in grid , In grid Binding to Date

If you mean how to add a DateField column to Grid, check out
Grid Renderers collection For Vaadin7 add-on
, and specifically DateFieldRenderer within it.

If you just want to display the Date as a custom-formatted String, try adding an extended StringToDateConverter with overridden getFormat(Locale) to that column.

If you mean how to add an item to a Grid so that it shows anything at all, you need to either use a container that auto-binds the fields (such as BeanItemContainer), or if you use Grid’s default container you need to add the property e.g. like this grid.addColumn("mydate"); Item item = grid.getContainerDataSource().addItem(itemId); item.getItemProperty("mydate").setValue(new Date());