GridView.ColumnsGenerator Property

Definition

Gets or sets the control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.

[System.ComponentModel.Browsable(false)]
public System.Web.UI.IAutoFieldGenerator ColumnsGenerator { get; set; }

Property Value

The control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.

Attributes

Remarks

In order to use ASP.NET Dynamic Data features in a page, you must add a DynamicDataManager control to the page. This enables ASP.NET Dynamic Data features for data-bound controls in a page, such as GridView control. To enable an individual GridView control to use Dynamic Data features, you must associate it with the DynamicDataManager control by calling the DynamicDataManager.RegisterControl method during the Page_Init event. This method automatically sets the ColumnsGenerator property to the DynamicDataManager object.

Applies to

Produk Versi
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1