Click or drag to resize

RecroGridRGFilterAdd Method (RecroGridRGFilterLogicalOperatorEnum, RecroGridRGFilter)

Adds the specified condition from RGFilter.

Namespace:  Recrovit.RecroGridFramework
Assembly:  Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 2.6.0
Syntax
C#
public void Add(
	RecroGridRGFilterLogicalOperatorEnum logicalOperator,
	RecroGridRGFilter filter
)

Parameters

logicalOperator
Type: Recrovit.RecroGridFrameworkRecroGridRGFilterLogicalOperatorEnum
The logical operator.
filter
Type: Recrovit.RecroGridFrameworkRecroGridRGFilter
The filter.
Examples
C#
//Csak az aktuális felhasználó adatai
this.FixFilter.Add(this, RGFilter.LogicalOperatorEnum.And, "UserId", RGFilter.SQLOperatorEnum.Equal, RecroSec.GetCurrentUserId(rgContext.HttpContext));

//Külön szűrő objektum zárójelezett feltételhez
RGFilter user1 = new RGFilter();
user1.Add(this, RGFilter.LogicalOperatorEnum.Or, "FromUserId", RGFilter.SQLOperatorEnum.Equal, RecroSec.GetCurrentUserId(rgContext.HttpContext));
user1.AddAliasCol(this, RGFilter.LogicalOperatorEnum.Or, "ToUserID", RGFilter.SQLOperatorEnum.Equal, RecroSec.GetCurrentUserId(rgContext.HttpContext));
this.FixFilter.Add(RGFilter.LogicalOperatorEnum.And, user1);
See Also