1、功能:显示在自定义网格的数据。
2、继承层次结构
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.DataGridView
命名空间: System.Windows.Forms
程序集: System.Windows.Forms(在 System.Windows.Forms.dll 中)
3、语法:
C#
[ComplexBindingPropertiesAttribute("DataSource", "DataMember")]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[ComVisibleAttribute(true)]
[DockingAttribute(DockingBehavior.Ask)]
public class DataGridView : Control,
ISupportInitialize
C++
[ComplexBindingPropertiesAttribute(L"DataSource", L"DataMember")]
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)]
[ComVisibleAttribute(true)]
[DockingAttribute(DockingBehavior::Ask)]
public ref class DataGridView : public Control,
ISupportInitialize
VB
声明
<ComplexBindingPropertiesAttribute("DataSource", "DataMember")> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
<DockingAttribute(DockingBehavior.Ask)> _
Public Class DataGridView _
Inherits Control _
Implements ISupportInitialize