Infragistics(R) NetAdvantage(R) Windows Forms
RowFilterAction Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : RowFilterAction Enumeration

Specifies what action to take on rows that are filtered out.

Syntax

Visual Basic (Declaration) 
Public Enum RowFilterAction 
   Inherits System.Enum
C# 
public enum RowFilterAction : System.Enum 

Members

MemberDescription
AppearancesOnlyAppearancesOnly applies the UltraGridOverride.FilteredInRowAppearance and UltraGridOverride.FilteredInCellAppearance to the rows that are filtered in (rows for which the filter conditions evaluate to true) and UltraGridOverride.FilteredOutRowAppearance and UltraGridOverride.FilteredOutCellAppearance to rows that are filtered out (rows for which the filter conditions evaluated to false).
DefaultDefault. Default is is resolved to HideFilteredOutRows.
DisableFilteredOutRowsIn addition to applying the filter related appearances as mentioned in the help for AppearancesOnly, DisableFilteredOutRows disables the rows that are filtered out (rows for which the filter conditions evaluate to false).
HideFilteredOutRowsIn addition to applying the filter related appearances as mentioned in the help for AppearancesOnly, HideFilteredOutRows hides the rows that are filtered out (rows for which the filter conditions evaluate to false).

Example

Following code sets some of the properties related to row filtering functionality.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        ' Turn on row filtering functionality.
        e.Layout.Override.AllowRowFiltering = DefaultableBoolean.True

        ' Specifies whether to filter all rows in band or the sibling rows.
        e.Layout.Override.RowFilterMode = RowFilterMode.AllRowsInBand

        ' The action to take on rows that fail the filter criteria.
        e.Layout.Override.RowFilterAction = RowFilterAction.AppearancesOnly

        ' Setup various appearances that will be applied to rows that
        ' are filtered in (ones that pass the filter criteria).
        e.Layout.Override.FilteredInRowAppearance.BackColor = Color.Blue
        e.Layout.Override.FilteredInCellAppearance.ForeColor = Color.Yellow

        ' Setup various appearances that will be applied to rows that
        ' are filtered out (ones that fail the filter criteria).
        e.Layout.Override.FilteredOutRowAppearance.BackColor = SystemColors.ControlLight
        e.Layout.Override.FilteredOutCellAppearance.ForeColor = SystemColors.ControlDarkDark
    End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// Turn on row filtering functionality.
			e.Layout.Override.AllowRowFiltering = DefaultableBoolean.True;

			// Specifies whether to filter all rows in band or the sibling rows.
			e.Layout.Override.RowFilterMode = RowFilterMode.AllRowsInBand;

			// The action to take on rows that fail the filter criteria.
			e.Layout.Override.RowFilterAction = RowFilterAction.AppearancesOnly;

			// Setup various appearances that will be applied to rows that
			// are filtered in (ones that pass the filter criteria).
			e.Layout.Override.FilteredInRowAppearance.BackColor = Color.Blue;
			e.Layout.Override.FilteredInCellAppearance.ForeColor = Color.Yellow;

			// Setup various appearances that will be applied to rows that
			// are filtered out (ones that fail the filter criteria).
			e.Layout.Override.FilteredOutRowAppearance.BackColor = SystemColors.ControlLight;
			e.Layout.Override.FilteredOutCellAppearance.ForeColor = SystemColors.ControlDarkDark;
		}

See Also