This is a migrated thread and some comments may be shown as answers.

FilterOperator.TopN problem

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Forest
Top achievements
Rank 1
Forest asked on 12 Jul 2012, 09:09 AM
Hi

I want to use FilterOperator.TopN.
Datas come from a dataSet. The filtered column type is Int32
I have this error:   "value of top/bootom filter should evaluate to Integer"
Filter filter1 = new Filter();
filter1.Expression = "=Fields.DAYNUMBER";
filter1.Operator = FilterOperator.TopN;
filter1.Value = "1";
 
this.table2.RowGroups[0].ChildGroups[1].Filters.Add(filter1);

1 Answer, 1 is accepted

Sort by
0
Forest
Top achievements
Rank 1
answered on 12 Jul 2012, 09:48 AM
It's ok.

I have to use : filter1.Value = "=1";
Tags
General Discussions
Asked by
Forest
Top achievements
Rank 1
Answers by
Forest
Top achievements
Rank 1
Share this question
or