行がフィルターによって除外されるかどうかを示します。フィルター アウトされた行は、フィルター条件にパスしない行です。フィルター条件は、RowFilterMode 設定に基づき UltraGridBand.ColumnFilters または RowsCollection.ColumnFilters プロパティによって指定できます。
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." ); } }