DataGridViewColumn.IsDataBound 屬性

定義

取得值指出資料行是否繫結至資料來源。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; }
[<System.ComponentModel.Browsable(false)>]
member this.IsDataBound : bool
Public ReadOnly Property IsDataBound As Boolean

屬性值

Boolean

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

屬性

備註

如果資料行是資料系結的一部分,資料行會變成系結至資料來源 DataGridViewA column becomes bound to a data source if it is part of a data-bound DataGridView. DataGridView 屬性設定為時,如果資料行是自動建立的 AutoGenerateColumns ,或是當手動將資料 true DataPropertyName 行加入至時,就會設定資料行的屬性,資料行就可以成為資料系結的一部分 DataGridViewA 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.

適用於

另請參閱