We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Filter does not evaluate to a boolean term

Thread ID:

Created:

Updated:

Platform:

Replies:

56903 Feb 21,2007 11:54 PM Feb 22,2007 06:27 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 21, 2007 11:54 PM

Hi there,
I'm trying to filter rows using a data view:

string pid = portfolioID;

DataView dv = new DataView(this.dtDataHubTrancheTable, pid, "portfolioId", DataViewRowState.CurrentRows);

I get an exception that pid does not evaluate to a boolean term. I checked and the values match?

Can you help?

Thanks

Administrator [Syncfusion]
Replied On February 22, 2007 06:27 AM

Exactly what is portfolioID? The RowFilter passed into the constructor must be a valid expression. So, it must look something like

"[colName] < 1000"

or

"[portfolioID] = 18782"

or some other string that is a valid expression that evaluates to true or false. See the MShelp on DataView.RowFilter for more information.
http://msdn2.microsoft.com/en-us/library/system.data.dataview.rowfilter.aspx

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;