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

the DataDourceManager class is a wrapper class around different types of datasources. in this case the DataSet, object list using reflection and the OutlooGridRow objects are supported by this class. Basically the DataDourceManager works like a facade that provides access in a uniform way to the datasource. Note: this class is not implemented optimally. It is merely used for demonstration purposes
Datei anzeigen Open project: unruledboy/SQLMonitor Class Usage Examples

Public Properties

Property Type Description
Columns System.Collections.ArrayList
Rows System.Collections.ArrayList

Public Methods

Method Description
DataSourceManager ( object dataSource, string dataMember ) : System.Collections
Sort ( IComparer comparer ) : void

Private Methods

Method Description
InitDataSet ( ) : void
InitGrid ( ) : void
InitList ( ) : void
InitManager ( ) : void

this function initializes the DataSourceManager's internal state. it will analyse the datasource taking the following source into account: - DataSet - Object array (must implement IList) - OutlookGrid

Method Details

DataSourceManager() public method

public DataSourceManager ( object dataSource, string dataMember ) : System.Collections
dataSource object
dataMember string
return System.Collections

Sort() public method

public Sort ( IComparer comparer ) : void
comparer IComparer
return void

Property Details

Columns public_oe property

public ArrayList,System.Collections Columns
return System.Collections.ArrayList

Rows public_oe property

public ArrayList,System.Collections Rows
return System.Collections.ArrayList