IDataGridView.Expression

Syntax

Expression: IExpression;

Description

The Expression property returns filtering setup expression.

Comments

The specified expression must be enclosed in round brackets and return a logical value. The expression can contain various comparison operators, logical operators, constants values, and field identifiers. Expression fields are enclosed in figured brackets, for example, {ID}, {IND_VALUE}. Field identifiers should be specified in the format they were created in DBMS. The correct format can be obtained in the IGridViewColumn.Id property. The fields, which columns are hidden in the table, can be used in the expression.

The created filtering expression will be added to the WHERE condition of the query used for getting source data.

Example

The property use is given in the example for IDataGridView.SetDataSet.

See also:

IDataGridView