Wimark.Controls Class Library  

DataGridViewBindingModel Members

DataGridViewBindingModel overview

Public Constructors

public constructorDataGridViewBindingModel Constructor Overloaded. Initializes a new instance of the DataGridViewBindingModel class.

Public Properties

public propertyAllowEdit (inherited from DataGridViewModel) Gets whether you can update items in the model. Default is false.
public propertyAllowNew (inherited from DataGridViewModel) Gets whether you can add items to the model. Default is false.
public propertyAllowRemove (inherited from DataGridViewModel) Gets whether you can remove items from the model. Default is false.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyCount (inherited from DataGridViewModel) Gets the number of items contained in the model.
public propertyCurrencyManager Gets the CurrencyManager of the underlying data source.
public propertyDataMember Gets or sets the specific list in the data source to which the data model currently binds to.
public propertyDataSource Gets or sets the data source that the data model binds to.
public propertyItem (inherited from DataGridViewModel) Gets the item at the specified indexed location in the model.
public propertyItemProperties Gets a collection of PropertyDescriptor objects that describes the properties in the underlying data source.
public propertyPosition Gets or sets the position in the underlying data source that controls point to.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertySort (inherited from DataGridViewModel) Gets or sets a string containing the column names used for sorting, and the sort order for viewing the rows in the data model.
public propertySupportsCancel (inherited from DataGridViewModel) Gets whether the model supports CancelEdit and CancelNew. Default is false.
public propertySupportsSorting (inherited from DataGridViewModel) Gets whether the list supports sorting. Default is false.
public propertyVirtual (inherited from DataGridViewModel) Gets a value indicating whether only unshared items are loaded. Note! Groups are not supported in the virtual mode.

Public Methods

public methodAdd (inherited from DataGridViewModel) Adds an item to the model.
public methodAddNew Creates a new item with the same schema as the model and adds the item to the list.
public methodBeginEdit (inherited from DataGridViewModel) Begins an edit on an item.
public methodCancelEdit (inherited from DataGridViewModel) Discards changes since the last BeginEdit call.
public methodCancelNew (inherited from DataGridViewModel) Discards a pending new item.
public methodClear (inherited from DataGridViewModel) Removes all items from the model.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
public methodEndEdit (inherited from DataGridViewModel) Pushes changes since the last BeginEdit call into the underlying data source.
public methodEndNew (inherited from DataGridViewModel) Pushes changes since of a new item into the underlying data source.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetError (inherited from DataGridViewModel) Gets an error message indicating what is wrong with an item.
public methodGetGroup (inherited from DataGridViewModel) Gets the name of the group the item is assigned to, or null.
public methodGetGroupCaption (inherited from DataGridViewModel) Gets the caption of the group the item is assigned to, or null.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetItemHeight (inherited from DataGridViewModel) Gets the height of the DataGridView row that represents the item.
public methodGetItemValue (inherited from DataGridViewModel) Gets the property value of an item.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetPropertyError (inherited from DataGridViewModel) Gets an error message indicating what is wrong with a property.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodInsert (inherited from DataGridViewModel) Inserts a new item into the model at the specified location.
public methodLoadItem (inherited from DataGridViewModel) An item has been unshared in the DataGridView control. This method is called to make sure that the item is loaded.
public methodLoadPage (inherited from DataGridViewModel) The DataGridView control is scrolled to a new page. This method is called to make sure that all items on the new page are loaded.
public methodNewItem (inherited from DataGridViewModel) Creates a new item with the same schema as the model.
public methodRemoveAt (inherited from DataGridViewModel) Removes the item at the specified index from the model.
public methodRemoveSort (inherited from DataGridViewModel) Removes the sort associated with the data model.
public methodSetItemHeight (inherited from DataGridViewModel) Sets the height of the DataGridView row that represents the item.
public methodSetItemValue (inherited from DataGridViewModel) Sets the property value of an item.
public methodToString (inherited from Component) Overridden. See Object.ToString.
public methodUnloadItem (inherited from DataGridViewModel) An item is completely shared in the DataGridView control and can be unloaded to reduce memory footprint.

Public Events

public eventDataMemberChanged Occurs when the DataMember property value has changed.
public eventDataSourceChanged Occurs when the DataSource property value has changed.
public eventDefaultValuesNeeded Occurs when a new item requires default values to be set.
public eventDisposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.
public eventErrorTextNeeded Occurs when the data model requires the error text of an item.
public eventGroupCaptionNeeded Occurs when the data model requires the caption of the group an item is assigned to.
public eventGroupNeeded Occurs when the data model requires the name of the group an item is assigned to.
public eventItemHeightNeeded Occurs when height of the row that represents an item is requested.
public eventItemHeightPushed Occurs when height of the row that represents an item is adjusted.
public eventListChanged (inherited from DataGridViewModel) Occurs when the list changes or an item in the list changes.
public eventPositionChanged Occurs when the Position has changed.
public eventPropertyErrorTextNeeded Occurs when the data model requires the error text of a property.
public eventValueNeeded Occurs when the data model requires a value of a property that is not bound to the underlying data source.
public eventValuePushed Occurs when the value of an unbound property is changed and requires storage in the underlying data source.

Protected Properties

protected propertyDesignMode (inherited from Component) Gets a value that indicates whether the Component is currently in design mode.
protected propertyEvents (inherited from Component) Gets the list of event handlers that are attached to this Component.

Protected Methods

protected methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
protected methodFinalize (inherited from Component) Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodGetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodOnDataMemberChanged Raises the DataMemberChanged event.
protected methodOnDataSourceChanged Raises the DataSourceChanged event.
protected methodOnDefaultValuesNeeded Raises the DefaultValuesNeeded event.
protected methodOnErrorTextNeeded Raises the ErrorTextNeeded event.
protected methodOnGroupCaptionNeeded Raises the GroupCaptionNeeded event.
protected methodOnGroupNeeded Raises the GroupNeeded event.
protected methodOnItemHeightNeeded Raises the ItemHeightNeeded event.
protected methodOnItemHeightPushed Raises the ItemHeightPushed event.
protected methodOnListChanged (inherited from DataGridViewModel) Raises the ListChanged event.
protected methodOnPositionChanged Raises the PositionChanged event.
protected methodOnPropertyErrorTextNeeded Raises the PropertyErrorTextNeeded event.
protected methodOnValueNeeded Raises the ValueNeeded event.
protected methodOnValuePushed Raises the ValuePushed event.

See Also

DataGridViewBindingModel Class | Wimark.Controls Namespace