DataGridViewColumn.IsDataBound 屬性

定義

取得值指出資料行是否繫結至資料來源。

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

屬性值

Boolean

如果資料行連接到資料來源,則為 true,否則為 false

屬性

備註

如果資料系結 的一部分 DataGridView ,資料行就會系結至資料來源。 如果資料行設定 true 為 時 AutoGenerateColumns 自動建立資料行,或當 DataPropertyName 資料行手動加入至 DataGridView 時設定資料行的 屬性,則資料行可能會成為資料系結 DataGridView 的一部分。

適用於

另請參閱