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的情况下自动创建列,或者在将该列手动添加到时设置列的DataPropertyName DataGridView属性,则该列可能会成为数据绑定的一部分。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.

适用于

另请参阅