Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > BindingSource (Filter property)
 

BindingSource (Filter property)

Here is the example in MSDN for the Filter property:

// Filter the items to show contacts who are owners.
BindingSource1.Filter = "ContactTitle='Owner'";

Is it a SQL expression or just limited to "=" operator ?
Bijan  Sunday, May 01, 2005 4:21 PM
Hi,


No, its not a SQL expression. But you could view it as your statement in a where clause in a select statement...

No, its not just limited to "=" you could use all boolean operators.... >, <, like, etc...





cheers,


Paul June A. Domag
Paul Domag  Sunday, May 01, 2005 5:23 PM
Note that BindingSource doesn't directly support filtering rather it requires the underlying data source to support filtering (which is typically only ADO.NET).  The following link has information on ADO.NET's filtering expressions:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassexpressiontopic.asp

Joe
Joe Stegman  Sunday, May 01, 2005 7:13 PM
Hi,


No, its not a SQL expression. But you could view it as your statement in a where clause in a select statement...

No, its not just limited to "=" you could use all boolean operators.... >, <, like, etc...





cheers,


Paul June A. Domag
Paul Domag  Sunday, May 01, 2005 5:23 PM
Note that BindingSource doesn't directly support filtering rather it requires the underlying data source to support filtering (which is typically only ADO.NET).  The following link has information on ADO.NET's filtering expressions:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassexpressiontopic.asp

Joe
Joe Stegman  Sunday, May 01, 2005 7:13 PM

You can use google to search for other answers

Custom Search

More Threads

• When I bind a control to interface IMyInterface2 : IMyInterface1 I can't see IMyInterface1 members
• dataerror event is not raised
• How to display a XML file.
• Simple question about a bindingsource
• Relatively Simple question regarding Filtering Combo Box DataSets
• data grid columns
• DataGridView - Sort int columns
• How to raise ClickEvent to Usercontrol Button in Windows Form
• Connection String to .Net 1.1 with Mysql
• gridview boundfields vs autogenerated columns