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

what is current filter expression?

6 Answers 294 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mahdi gh
Top achievements
Rank 1
mahdi gh asked on 12 Oct 2010, 08:17 PM
hi all
i used a dataview as radgridview dataSource. enable filtering is set to true. when i enter some data in filter editor box on top of columns, it works fine but it have no effect on dataview.RowFilter property.
the problem is when i want print those rows which currently is visible, i don't know what filter expression i should use in my crystal report object.
thanks

6 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 12 Oct 2010, 08:26 PM
Hello Mahdi Gh,

To access the FilterDescriptors currently active on the grid, you can use
var filters = radGridView1.FilterDescriptors;

FilterDescriptor major properties:
  • The PropertyName property defines the property, which values will be filtered.
  • The Operator property allows you to define the type of operator. The possible values are: IsLike, IsNotLike, IsLessThan, IsLessThanOrEqualTo, IsEqualTo, IsNotEqualTo, IsGreaterThanOrEqualTo, IsGreaterThan, StartsWith, EndsWith, Contains, NotContains, IsNull,  IsNotNull, IsContainedIn, IsNotContainedIn.
  • The Value property is the value your data will be compared against.

For more information on FilterDescriptors, please take a look at this help article or this one.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
mahdi gh
Top achievements
Rank 1
answered on 12 Oct 2010, 08:34 PM
thanks buddy
0
mahdi gh
Top achievements
Rank 1
answered on 13 Oct 2010, 03:02 PM
hi again
i'm using radGridView version 8.2.0.0 and runtime version v2.0.50727
i checked , there is no FilterDescriptor peroperty.
is it one of gridview properties or a stand-alone object?
please i need this
0
Richard Slade
Top achievements
Rank 2
answered on 13 Oct 2010, 03:12 PM
Hi, 

FilterDescriptor is the new way of saying FilterExpression
(I dont have the old version, so I can't check exactly, but I believe that's the case)
Hope that helps
Richard
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 13 Oct 2010, 03:14 PM
Trying to remember, I think it's RadGridView.MasterGridViewTemplate.FilterExpressions
Richard
0
mahdi gh
Top achievements
Rank 1
answered on 13 Oct 2010, 05:45 PM
thanks a lot .
it works
Tags
GridView
Asked by
mahdi gh
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
mahdi gh
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or