Wimark.Controls Class Library  

DataGridViewCell Members

DataGridViewCell overview

Public Constructors

public constructorDataGridViewCell Constructor Initializes a new instance of the DataGridViewCell class.

Public Properties

public propertyAddress Gets the address of a cell.
public propertyAlignment Gets a value indicating the position of the content within a cell.
public propertyBackColor Gets the background color of a cell.
public propertyBounds Gets the bounds of the cell.
public propertyColumnIndex Gets the column index for this cell.
public propertyContainer (inherited from Component) Gets the IContainer that contains the Component.
public propertyCustomBorder Gets border information when the BorderStyle is set to Custom.
public propertyDataGridView Gets the DataGridView control the cell is located in.
public propertyDataGridViewRow Gets the DataGridViewRow the cell is located in.
public propertyDrawFocusRectangleWhenCurrent Gets a value indicating whether the control should draw the focus rectangle when the cell is current (default is true).
public propertyDrawSelectionBackColorWhenActive Gets a value indicating whether the cell should use the selection backcolor when it is active (default is true).
public propertyErrorText Gets or sets the text describing an error condition associated with the cell.
public propertyFont Gets the font applied to the textual content of a cell.
public propertyForeColor Gets the foreground color of a cell.
public propertyFormat Gets or sets the format string applied to the textual content of a cell.
public propertyFormatProvider Gets or sets the object used to provide culture-specific formatting of cell values.
public propertyGetDefaultValue Gets the default value for a cell in a newly created row.
public propertyIndent Gets the distance to indent the content of a cell.
public propertyMergedColumns Gets or sets the number of cells to the right that should be merged to this cell.
public propertyMergedRows Gets or sets the number of cells beneath that should be merged to this cell.
public propertyNullValue Gets or sets the DataGridView cell display value corresponding to a cell value of DBNull.
public propertyReadOnly Gets or sets a value indicating whether the cell is read-only.
public propertyRowIndex Gets the index of the cell's parent row.
public propertySelected Gets or sets a value indicating whether the cell is selected.
public propertySelectionBackColor Gets the background color used by a cell when it is selected.
public propertySelectionForeColor Gets the foreground color used by a cell when it is selected.
public propertyShareable Gets or sets a value indicating whether the cell can be shared when it is scrolled out of view.
public propertySite (inherited from Component) Gets or sets the ISite of the Component.
public propertyStyle Gets or sets the style for the cell.
public propertyTag Gets or sets the object that contains data about the cell.
public propertyToolTipText Gets or sets the text of a tool tip that describes the cell.
public propertyToolTipTitle Gets or sets the title of a tool tip that describes the cell.
public propertyValue Gets or sets the value associated with this cell.
public propertyValueType Gets or sets the data type of the values in the cell.
public propertyWrapMode Gets or sets a value indicating whether textual content in a cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.

Public Methods

public methodAlignmentToContentAlignment Converts a DataGridViewContentAlignment value to a ContentAlignment value.
public methodAlignmentToHorizontalAlignment Converts a DataGridViewContentAlignment value to a HorizontalAlignment value.
public methodAlignmentToHorizontalStringAlignment Converts a DataGridViewContentAlignment value to a horizontal StringAlignment value.
public methodAlignmentToVerticalStringAlignment Converts a DataGridViewContentAlignment value to a vertical StringAlignment value.
public methodClone Creates an identical copy of the current DataGridViewCell that is not attached to any data grid view row.
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 methodEnsureVisible Ensures that the cell is visible, expanding groups and scrolling the data grid view control as necessary.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetFormattedValue Gets the formatted value of the cell.
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 methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
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 methodIsVisible Gets a value indicating whether the cell is visible.
public methodParseEditedValue Parses the edited value to the ValueType data type.
public methodShareCell Shares a cell. Returns false if the cell cannot be shared.
public methodToString (inherited from Component) Overridden. See Object.ToString.

Public Events

public eventDisposed (inherited from Component) Adds an event handler to listen to the Disposed event on the component.

Protected Properties

protected propertyDefaultValueType Gets the default type of the values in the cell.
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 methodActivateCell Activates the cell and returns the editor used to edit the cell value.
protected methodActivateOnEnter Gets a value indicating whether the editing mode should be started when the cell is entered.
protected methodCanActivate Gets a value indicating whether the cell can be activated.
protected methodComputeContentBounds Computes location and size of the cell content.
protected methodComputeErrorIconBounds Computes location and size of the error icon.
protected methodDeactivateCell Deactivates the cell.
protected methodDefaultFormatting Formats the value of a cell before it is displayed.
protected methodDefaultParsing Formats the value of a cell before it is displayed.
protected methodDispose (inherited from Component) Overloaded. Releases the resources used by the Component.
protected methodDrawContent Draws the content of the cell.
protected methodFinalize (inherited from Component) Overridden. See Object.Finalize.

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

protected methodGetActiveContentCursor Gets the mouse cursor used when the mouse is over the active content of a cell.
protected methodGetDefaultAlignment Gets the default content alignment.
protected methodGetDisposeFormattedValue Gets a value indicating whether the formatted value should be disposed (default is false).
protected methodGetFormattedValueType Gets the class type of the formatted value associated with the cell.
protected methodGetService (inherited from Component) Returns an object that represents a service provided by the Component or by its Container.
protected methodGetToolTipForHiddenContent Gets the tooltip that is displayed when parts of the cell content is hidden.
protected methodHittestActiveContent Gets a value indicating whether a specified location is over the active content of the cell.
protected methodIsShareable Gets a value indicating whether the cell can be shared.
protected methodKeyPressOnActivate Sets the key that was pressed when the cell was activated.
protected methodMeasureContentHeight Measures the preferred width of the content.
protected methodMeasureContentWidth Measures the preferred width of the content.
protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
protected methodMouseClickOnActivate Sends the mouse click event that activated the cell.
protected methodOnActiveContentClick Occurs when the active content within the cell is clicked.
protected methodSetValueToNull Sets the value to DBNull and updated the current editor if the editor is active.

See Also

DataGridViewCell Class | Wimark.Controls Namespace