countryGrid.setAutoFetchData(true);
countryGrid.setShowFilterEditor(true);
countryGrid.setAllowFilterExpressions(true);
AdvancedCriteria initialCriteria = new AdvancedCriteria(OperatorId.AND, new Criterion[]{
new Criterion("countryName", OperatorId.INOT_CONTAINS, "i"),
new Criterion("capital", OperatorId.BETWEEN_INCLUSIVE, "A", "F"),
new AdvancedCriteria(OperatorId.OR, new Criterion[]{
new Criterion("population", OperatorId.LESS_THAN, 1000000),
new Criterion("population", OperatorId.GREATER_THAN, 100000000)
})
});