DataGridViewElement 类

定义

为控件的 DataGridView 元素提供基类。

public ref class DataGridViewElement
public class DataGridViewElement
type DataGridViewElement = class
Public Class DataGridViewElement
继承
DataGridViewElement
派生

注解

.NET Framework 提供两个从 DataGridViewElement 派生的专用类:DataGridViewCell,这些类表示各个元素,以及表示一系列分组子元素的 DataGridViewBand

构造函数

名称 说明
DataGridViewElement()

初始化 DataGridViewElement 类的新实例。

属性

名称 说明
DataGridView

DataGridView获取与此元素关联的控件。

State

获取元素的用户界面(UI)状态。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
OnDataGridViewChanged()

当元素与另 DataGridView一个元素关联时调用。

RaiseCellClick(DataGridViewCellEventArgs)

引发 CellClick 事件。

RaiseCellContentClick(DataGridViewCellEventArgs)

引发 CellContentClick 事件。

RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

引发 CellContentDoubleClick 事件。

RaiseCellValueChanged(DataGridViewCellEventArgs)

引发 CellValueChanged 事件。

RaiseDataError(DataGridViewDataErrorEventArgs)

引发 DataError 事件。

RaiseMouseWheel(MouseEventArgs)

引发 MouseWheel 事件。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅