C# Class Xnlab.SQLMon.Controls.OutlookGrid.OutlookGridAlphabeticGroup

this group simple example of an implementation which groups the items into Alphabetic categories based only on the first letter of each item for this we need to override the Value property (used for comparison) and the CompareTo function. Also the Clone method must be overriden, so this Group object can create clones of itself. Cloning of the group is used by the OutlookGrid
Inheritance: OutlookgGridDefaultGroup
Show file Open project: unruledboy/SQLMonitor Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

each group class must implement the clone function

CompareTo ( object obj ) : int

overide the CompareTo, so only the first character is compared, instead of the whole string this will result in classifying each item into a letter of the Alphabet. for instance, this is usefull when grouping names, they will be categorized under the letters A, B, C etc..

OutlookGridAlphabeticGroup ( ) : System

Method Details

Clone() public method

each group class must implement the clone function
public Clone ( ) : object
return object

CompareTo() public method

overide the CompareTo, so only the first character is compared, instead of the whole string this will result in classifying each item into a letter of the Alphabet. for instance, this is usefull when grouping names, they will be categorized under the letters A, B, C etc..
public CompareTo ( object obj ) : int
obj object
return int

OutlookGridAlphabeticGroup() public method

public OutlookGridAlphabeticGroup ( ) : System
return System