Freigeben über


ListObject.AutoSetDataBoundColumnHeaders Property

Definition

Gets or sets a value that determines whether the column headers are automatically set to match the data source.

public:
 property bool AutoSetDataBoundColumnHeaders { bool get(); void set(bool value); };
public bool AutoSetDataBoundColumnHeaders { get; set; }
member this.AutoSetDataBoundColumnHeaders : bool with get, set
Public Property AutoSetDataBoundColumnHeaders As Boolean

Property Value

true to automatically set the column names; otherwise, false. The default is false.

Remarks

When set to true, this property causes the column header of each column in the ListObject control to match the corresponding column header of the data source.

The person using the worksheet cannot change the column headers when this property is set to true. If the column header is changed, it will revert back to match the data source when the user shifts focus away from the header cell.

Applies to