DataGridViewElement 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 DataGridView 控件的元素提供基类。
public ref class DataGridViewElementpublic class DataGridViewElementtype DataGridViewElement = classPublic 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) |