Bewerken

Share via


DataGridViewElement Class

Definition

Provides the base class for elements of a DataGridView control.

public ref class DataGridViewElement
public class DataGridViewElement
type DataGridViewElement = class
Public Class DataGridViewElement
Inheritance
DataGridViewElement
Derived

Remarks

The .NET Framework supplies two specialized classes that derive from DataGridViewElement: DataGridViewCell, which represents individual elements, and DataGridViewBand, which represents a series of grouped subelements.

Constructors

DataGridViewElement()

Initializes a new instance of the DataGridViewElement class.

Properties

DataGridView

Gets the DataGridView control associated with this element.

State

Gets the user interface (UI) state of the element.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnDataGridViewChanged()

Called when the element is associated with a different DataGridView.

RaiseCellClick(DataGridViewCellEventArgs)

Raises the CellClick event.

RaiseCellContentClick(DataGridViewCellEventArgs)

Raises the CellContentClick event.

RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

Raises the CellContentDoubleClick event.

RaiseCellValueChanged(DataGridViewCellEventArgs)

Raises the CellValueChanged event.

RaiseDataError(DataGridViewDataErrorEventArgs)

Raises the DataError event.

RaiseMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also