BCGControlBar Library for .NET
SetFilter Method




Applies a filter to a column in the specified range.
Sets a filter to the specified column in the specified range.
Overload List
OverloadDescription
SetFilter(GridColumn,GridSelectionRange,Boolean)Applies a filter to a column in the specified range.  
SetFilter(GridColumn,Boolean)Applies a filter to a column for the whole grid control.  
Remarks

When you call this method, the Grid control loops over all rows (in the specified range for the first overload) and raises the Filter event for each row.

You can set GridDataRow.Filtered%GridDataItem.Filtered:BCGSoft.Controls.Grid~BCGSoft.Controls.Grid.GridDataItem~Filtered% properties to true in order to filter out the desired rows.

Set GridData.SingleFilterMode to switch between single and multiple filter modes.

Set EnableFilter to true to display Filter Button in column headers.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback