Version

RowFilterComparer Property

Comparer used to evaluate comparison operators for the row filtering functionality. The values passed in the Compare method of the IComparer will be the two values that are to be compareed.
Syntax
'Declaration
 
Public Property RowFilterComparer As IComparer
public IComparer RowFilterComparer {get; set;}
Remarks

RowFilterComparer is used to evaluate comparison operators for the row filtering functionality. This is useful if you want to compare values using custom logic for row filtering functionality.

Unlike the SortComparer, the values passed in the Compare method of the RowFilterComparer will be the two values that are to be compared. The Compare method of the SortComparer gets passed in two UltraGridCell instances. Also if filter row functionality is enabled, the user can enter any value, typically in the form of a string, to filter the rows by. In this case the Compare method may get called on this comparer where one value is a cell value which is column's data type and the other value is a string. Therefore this comparer should handle string values. It should also handle null or DBNull if those value occur in the column.

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