private bool IsFit() { ResultRow rr = this.GetCurrentRow() as ResultRow; IResultSet resultSet = (this.DataSource as SqlDataSource).Result as DevExpress.DataAccess.Sql.DataApi.IResultSet; ITable tableProd = null; resultSet.TryGetTable("CategoryProducts", out tableProd); DevExpress.Data.Filtering.CriteriaOperator filter = DevExpress.Data.Filtering.CriteriaOperator.Parse(FilterExpression); DevExpress.Data.Filtering.Helpers.ExpressionEvaluator evaluator = new DevExpress.Data.Filtering.Helpers.ExpressionEvaluator((((ITypedList)tableProd).GetItemProperties(null)), filter); bool isFit = evaluator.Fit(rr); return(isFit); }