Method | Description | |
---|---|---|
DataSourceAdapter ( |
Make a DataSourceAdapter
|
|
Dispose ( ) : void |
Release all the resources used by this instance
|
|
Dispose ( bool fromUser ) : void |
Release all the resources used by this instance
|
Method | Description | |
---|---|---|
BindDataSource ( ) : void | ||
BindListView ( |
||
ChangePosition ( int index ) : void |
Change the control's position (which is it's currently selected row) to the n'th row in the dataset
|
|
ConfigureColumn ( OLVColumn column, |
Configure the given column to show the given property. The title and aspect name of the column are already filled in.
|
|
CreateColumnsFromSource ( ) : void |
Create columns for the listview based on what properties are available in the data source This method will create columns if there is not already a column displaying that property. |
|
CreateMissingAspectGettersAndPutters ( ) : void |
Generate aspect getters and putters for any columns that are missing them (and for which we have enough information to actually generate a getter)
|
|
CurrencyManagerListChanged ( object sender, |
CurrencyManager ListChanged event handler. Deals with fine-grained changes to list items. It's actually difficult to deal with these changes in a fine-grained manner. If our listview is grouped, then any change may make a new group appear or an old group disappear. It is rarely enough to simply update the affected row. |
|
HandleCurrencyManagerMetaDataChanged ( object sender, |
The CurrencyManager calls this if the data source looks different. We just reload everything. CHECK: Do we need this if we are handle ListChanged metadata events? |
|
HandleCurrencyManagerPositionChanged ( object sender, |
Called by the CurrencyManager when the currently selected item changes. We update the ListView selection so that we stay in sync with any other controls bound to the same source.
|
|
HandleListChangedItemAdded ( |
Handle an ItemAdded event.
|
|
HandleListChangedItemChanged ( |
Handle ItemChanged event. This is triggered when a single item has changed, so just refresh that one item. Even in this simple case, we should probably rebuild the list. For example, the change could put the item into its own new group. |
|
HandleListChangedItemDeleted ( |
Handle the ItemDeleted event
|
|
HandleListChangedItemMoved ( |
Handle ItemMoved event
|
|
HandleListChangedMetadataChanged ( |
Handle PropertyDescriptor* events
|
|
HandleListChangedReset ( |
Handle the Reset event
|
|
HandleListViewBindingContextChanged ( object sender, |
Handle a change to the BindingContext of our ListView.
|
|
HandleListViewFreezing ( object sender, BrightIdeasSoftware.FreezeEventArgs e ) : void |
Handle the frozenness of our ListView changing.
|
|
HandleListViewSelectedIndexChanged ( object sender, |
Handle the selection changing in our ListView. We need to tell our currency manager about the new position.
|
|
InitializeDataSource ( ) : void |
The data source for this control has changed. Reconfigure the control for the new source
|
|
RebindDataSource ( ) : void |
Our data source has changed. Figure out how to handle the new source
|
|
RebindDataSource ( bool forceDataInitialization ) : void |
Our data source has changed. Figure out how to handle the new source
|
|
SetListContents ( ) : void |
Take the contents of the currently bound list and put them into the control
|
|
ShouldCreateColumn ( |
Decide if a new column should be added to the control to display the given property
|
|
UnbindDataSource ( ) : void | ||
UnbindListView ( |
protected BindListView ( |
||
olv | ||
return | void |
protected ChangePosition ( int index ) : void | ||
index | int | The index of the row to be selected |
return | void |
protected ConfigureColumn ( OLVColumn column, |
||
column | OLVColumn | |
property | ||
return | void |
protected CreateMissingAspectGettersAndPutters ( ) : void | ||
return | void |
protected CurrencyManagerListChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
public DataSourceAdapter ( |
||
olv | ||
return | System |
protected HandleCurrencyManagerMetaDataChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
protected HandleCurrencyManagerPositionChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
protected HandleListChangedItemAdded ( |
||
e | ||
return | void |
protected HandleListChangedItemChanged ( |
||
e | ||
return | void |
protected HandleListChangedItemDeleted ( |
||
e | ||
return | void |
protected HandleListChangedItemMoved ( |
||
e | ||
return | void |
protected HandleListChangedMetadataChanged ( |
||
e | ||
return | void |
protected HandleListChangedReset ( |
||
e | ||
return | void |
protected HandleListViewBindingContextChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
protected HandleListViewFreezing ( object sender, BrightIdeasSoftware.FreezeEventArgs e ) : void | ||
sender | object | |
e | BrightIdeasSoftware.FreezeEventArgs | |
return | void |
protected HandleListViewSelectedIndexChanged ( object sender, |
||
sender | object | |
e | ||
return | void |
protected RebindDataSource ( bool forceDataInitialization ) : void | ||
forceDataInitialization | bool | |
return | void |
protected ShouldCreateColumn ( |
||
property | ||
return | bool |
protected UnbindListView ( |
||
olv | ||
return | void |