Hello!
I try set container to grid, but get error message in Eclipse “The method setContainerDataSource(sqlContainer) is undefined for the type Grid” why, please help?
I undestand, eclipse can’t see this metod, but how fix it?
the code is:
private void initGrid() {
try {
TableQuery tbl = new TableQuery ("table", getPoolConnection());
tbl.setVersionColumn("VERSION");
SQLContainer sqlContainer = new SQLContainer(tbl);
Grid grid = new Grid();
grid.setContainerDataSource(sqlContainer); <-- error here
} catch (SQLException e) {
e.printStackTrace();
}
}