DataGridViewCell.OwningColumn 属性

定义

获取包含此单元格的列。

public:
 property System::Windows::Forms::DataGridViewColumn ^ OwningColumn { System::Windows::Forms::DataGridViewColumn ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewColumn OwningColumn { get; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.DataGridViewColumn? OwningColumn { get; }
[<System.ComponentModel.Browsable(false)>]
member this.OwningColumn : System.Windows.Forms.DataGridViewColumn
Public ReadOnly Property OwningColumn As DataGridViewColumn

属性值

包含该单元格的 DataGridViewColumn;如果该单元格不在任何一列中,则为 null

属性

适用于

另请参阅