DataGridViewCell.OwningColumn 属性

定义

获取包含此单元格的列。Gets the column that contains this cell.

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)>]
member this.OwningColumn : System.Windows.Forms.DataGridViewColumn
Public ReadOnly Property OwningColumn As DataGridViewColumn

属性值

DataGridViewColumn

包含该单元格的 DataGridViewColumn;如果该单元格不在任何一列中,则为 nullThe DataGridViewColumn that contains the cell, or null if the cell is not in a column.

属性

适用于

另请参阅