combit List & Label 24 - .NET Online Web Help
ApplyAdvancedFilter Method
Example 


combit.ListLabel24.DataProviders Namespace > IAdvancedFiltering Interface : ApplyAdvancedFilter Method
The filter string to apply.
Additional query parameter values for parametrized queries.
This method is called whenever an advanced filter (translated using the TranslateFilterSyntax method) should be applied to the data source.
Syntax
'Declaration
 
Sub ApplyAdvancedFilter( _
   ByVal filter As String, _
   ByVal parameters() As Object _
) 
void ApplyAdvancedFilter( 
   string filter,
   object[] parameters
)
void ApplyAdvancedFilter( 
   String^ filter,
   array<Object^>^ parameters
) 

Parameters

filter
The filter string to apply.
parameters
Additional query parameter values for parametrized queries.
Example
This sample demonstrates how the ApplyAdvancedFilter method is implemented for the AdoDataProvider class. The filter is directly set as RowFilter, combined with any existing filter that might have been set before.
public void ApplyAdvancedFilter(string filter, object[] parameters)
{
    DataViewSetting setting = _dataView.DataViewManager.DataViewSettings[_dataView.Table.TableName];

    string rowFilter = setting.RowFilter;
    string effectiveFilter = filter;
    if (!String.IsNullOrEmpty(rowFilter))
    {
        effectiveFilter = String.Format("({0}) AND ({1})", rowFilter, filter);
    }
    _dataView.RowFilter = effectiveFilter;
}
Requirements

See Also

Reference

IAdvancedFiltering Interface
IAdvancedFiltering Members