Wimark.Controls Class Library  

DataGridViewModel Members

DataGridViewModel overview

Public Properties

public propertyAllowEdit Gets whether you can update items in the model. Default is false.
public propertyAllowNew Gets whether you can add items to the model. Default is false.
public propertyAllowRemove 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 Gets the number of items contained in the model.
public propertyItem Gets the item at the specified indexed location in the model.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertySort 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 Gets whether the model supports CancelEdit and CancelNew. Default is false.
public propertySupportsSorting Gets whether the list supports sorting. Default is false.
public propertyVirtual Gets a value indicating whether only unshared items are loaded. Note! Groups are not supported in the virtual mode.

Public Methods

public methodAdd Adds an item to the model.
public methodBeginEdit Begins an edit on an item.
public methodCancelEdit Discards changes since the last BeginEdit call.
public methodCancelNew Discards a pending new item.
public methodClear 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 Pushes changes since the last BeginEdit call into the underlying data source.
public methodEndNew 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 Gets an error message indicating what is wrong with an item.
public methodGetGroup Gets the name of the group the item is assigned to, or null.
public methodGetGroupCaption 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 Gets the height of the DataGridView row that represents the item.
public methodGetItemValue 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 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 Inserts a new item into the model at the specified location.
public methodLoadItem An item has been unshared in the DataGridView control. This method is called to make sure that the item is loaded.
public methodLoadPage 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 Creates a new item with the same schema as the model.
public methodRemoveAt Removes the item at the specified index from the model.
public methodRemoveSort Removes the sort associated with the data model.
public methodSetItemHeight Sets the height of the DataGridView row that represents the item.
public methodSetItemValue Sets the property value of an item.
public methodToString (inherited from Component) Overridden. See Object.ToString.
public methodUnloadItem An item is completely shared in the DataGridView control and can be unloaded to reduce memory footprint.

Public Events

public eventDisposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.
public eventListChanged Occurs when the list changes or an item in the list changes.

Protected Constructors

protected constructorDataGridViewModel Constructor

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 methodOnListChanged Raises the ListChanged event.

See Also

DataGridViewModel Class | Wimark.Controls Namespace