Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.ConvenienceLib.SortableBindingList< T > Class Template Reference

More...

Inheritance diagram for Greet.ConvenienceLib.SortableBindingList< T >:

Public Member Functions

 SortableBindingList ()
 Initializes a new instance of the SortableBindingList{T} class. More...
 
 SortableBindingList (IList< T > list)
 Initializes a new instance of the SortableBindingList{T} class. More...
 

Protected Member Functions

override void ApplySortCore (PropertyDescriptor prop, ListSortDirection direction)
 Sorts the items if overridden in a derived class More...
 
override void RemoveSortCore ()
 Removes any sort applied with ApplySortCore if sorting is implemented More...
 

Properties

override bool IsSortedCore [get]
 Gets a value indicating whether the list is sorted. More...
 
override ListSortDirection SortDirectionCore [get]
 Gets the direction the list is sorted. More...
 
override PropertyDescriptor SortPropertyCore [get]
 Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null More...
 
override bool SupportsSortingCore [get]
 Gets a value indicating whether the list supports sorting. More...
 

Detailed Description

Provides a generic collection that supports data binding and additionally supports sorting. See http://msdn.microsoft.com/en-us/library/ms993236.aspx If the elements are IComparable it uses that; otherwise compares the ToString()

Template Parameters
TThe type of elements in the list.
Type Constraints
T :class 

Constructor & Destructor Documentation

Greet.ConvenienceLib.SortableBindingList< T >.SortableBindingList ( )

Initializes a new instance of the SortableBindingList{T} class.

Greet.ConvenienceLib.SortableBindingList< T >.SortableBindingList ( IList< T >  list)

Initializes a new instance of the SortableBindingList{T} class.

Parameters
listAn T:System.Collections.Generic.IList`1 of items to be contained in the T:System.ComponentModel.BindingList`1.

Member Function Documentation

override void Greet.ConvenienceLib.SortableBindingList< T >.ApplySortCore ( PropertyDescriptor  prop,
ListSortDirection  direction 
)
protected

Sorts the items if overridden in a derived class

Parameters
prop
direction
override void Greet.ConvenienceLib.SortableBindingList< T >.RemoveSortCore ( )
protected

Removes any sort applied with ApplySortCore if sorting is implemented

Property Documentation

override bool Greet.ConvenienceLib.SortableBindingList< T >.IsSortedCore
getprotected

Gets a value indicating whether the list is sorted.

override ListSortDirection Greet.ConvenienceLib.SortableBindingList< T >.SortDirectionCore
getprotected

Gets the direction the list is sorted.

override PropertyDescriptor Greet.ConvenienceLib.SortableBindingList< T >.SortPropertyCore
getprotected

Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null

override bool Greet.ConvenienceLib.SortableBindingList< T >.SupportsSortingCore
getprotected

Gets a value indicating whether the list supports sorting.


The documentation for this class was generated from the following file: