Xceed Grid for WinForms v4.3 Documentation
DataComparer Property
Example 


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > Column Class : DataComparer Property
Gets or sets an instance of a class which implements the System.Collections.IComparer interface in order to compare the column's data during grouping and sorting.
Syntax
'Declaration
 
<BrowsableAttribute(False)>

<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>

Public Property DataComparer As IComparer
'Usage
 
Dim instance As Column

Dim value As IComparer

 

instance.DataComparer = value

 

value = instance.DataComparer
[Browsable(false)]

[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

public IComparer DataComparer {get; set;}

Property Value

A reference to a class that has the System.Collections.IComparer interface.
Remarks

To reset the value of the DataComparer property to its default value, DefaultDataComparer, the ResetDataComparer method must be called.

Example
The following example demonstrates how to set the DataComparer class to a new instance of a System.Collections.CaseInsensitiveComparer class:
column.DataComparer = New CaseInsensitiveComparer()
column.DataComparer = new CaseInsensitiveComparer();
Requirements

Target Platforms: 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

Reference

Column Class
Column Members
ResetDataComparer Method
DefaultDataComparer Property