Version

IsFilteredOut Property

Indicates whether the row is filtered out or not. A filtered out row is a row that does not pass the filter criteria. Filter criteria can be sepcified by UltraGridBand.ColumnFilters or RowsCollection.ColumnFilters property depending on the RowFilterMode setting.
Syntax
'Declaration
 
Public ReadOnly Property IsFilteredOut As Boolean
public bool IsFilteredOut {get;}
Remarks

Indicates whether the row is filtered out or not. A filtered out row is a row that does not pass the filter criteria. Filter criteria can be sepcified by UltraGridBand.ColumnFilters or RowsCollection.ColumnFilters property depending on the RowFilterMode setting.

Example
Following code shows how to filter rows through code and check if a row is filtered out or not.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim band As UltraGridBand = Me.UltraGrid1.DisplayLayout.Bands(0)

        ' Set the row filter mode to AllRowsInBand so UltraGrid uses the filters added
        ' to UltraGridBand.ColumnFilters object.
        band.Override.RowFilterMode = RowFilterMode.AllRowsInBand

        Dim column As UltraGridColumn = band.Columns(0)

        band.ColumnFilters(column).FilterConditions.Clear()
        band.ColumnFilters(column).FilterConditions.Add(FilterComparisionOperator.LessThan, 5)

        Dim row As UltraGridRow
        For Each row In Me.UltraGrid1.Rows
            If row.IsFilteredOut Then
                Debug.WriteLine("Row with cell value of " & row.GetCellValue(column) & " is filtered out.")
            Else
                Debug.WriteLine("Row with cell value of " & row.GetCellValue(column) & " is NOT filtered out.")
            End If
        Next

    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];

			// Set the row filter mode to AllRowsInBand so UltraGrid uses the filters added
			// to UltraGridBand.ColumnFilters object.
			band.Override.RowFilterMode = RowFilterMode.AllRowsInBand;

			UltraGridColumn column = band.Columns[0];

			band.ColumnFilters[ column ].FilterConditions.Clear( );
			band.ColumnFilters[ column ].FilterConditions.Add( FilterComparisionOperator.LessThan, 5 );

			foreach ( UltraGridRow row in this.ultraGrid1.Rows )
			{
				if ( row.IsFilteredOut )
					Debug.WriteLine( "Row with cell value of " + row.GetCellValue( column ) + " is filtered out." );
				else
					Debug.WriteLine( "Row with cell value of " + row.GetCellValue( column ) + " is NOT filtered out." );
			}
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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