Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Private Sub UltraGrid1_FilterCellValueChanged(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.FilterCellValueChangedEventArgs) Handles UltraGrid1.FilterCellValueChanged
' Get the filter cell whose value changed.
Dim filterCell As UltraGridFilterCell = e.FilterCell
Dim editor As EmbeddableEditorBase = filterCell.EditorResolved
System.Diagnostics.Debug.WriteLine("FilterCellValueChanged: ")
System.Diagnostics.Debug.WriteLine(" New Text = " & editor.CurrentEditText)
If editor.IsValid Then
' If the user has entered a valid value in the editor then write it out.
System.Diagnostics.Debug.WriteLine(" New Value = " & editor.Value.ToString())
Else
' A value can be invallid for example if the field is a date time field
' and the user has not fully input a date.
System.Diagnostics.Debug.WriteLine(" New Value is Invalid")
End If
' You can conditionally cause or prevent the UltraGrid from re-filtering the
' rows based on the new filter value by setting the ApplyNewFilter to true
' or false respectively.
e.ApplyNewFilter = False
End Sub