DataGridViewColumn.IsDataBound DataGridViewColumn.IsDataBound DataGridViewColumn.IsDataBound DataGridViewColumn.IsDataBound Property

定義

取得值指出資料行是否繫結至資料來源。Gets a value indicating whether the column is bound to a data source.

public:
 property bool IsDataBound { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsDataBound { get; }
member this.IsDataBound : bool
Public ReadOnly Property IsDataBound As Boolean

屬性值

如果資料行連接到資料來源,則為 true,否則為 falsetrue if the column is connected to a data source; otherwise, false.

備註

如果資料行是資料DataGridView系結的一部分,則會將它系結至資料來源。A column becomes bound to a data source if it is part of a data-bound DataGridView. DataGridView如果將AutoGenerateColumns屬性設定為true時,如果自動建立資料行,或者當您手動將資料行加入至時,設定了資料行DataPropertyNameDataGridView屬性,則資料行可以成為資料系結的一部分。A column can become part of a data-bound DataGridView if the column is automatically created when the AutoGenerateColumns property is set to true, or if the column's DataPropertyName property is set when the column is manually added to the DataGridView.

適用於

另請參閱