GridView::ColumnsGenerator Property
Gets or sets the control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] property IAutoFieldGenerator^ ColumnsGenerator { IAutoFieldGenerator^ get(); void set(IAutoFieldGenerator^ value); }
Property Value
Type: System.Web.UI::IAutoFieldGenerator^The control that will automatically generate the columns for a GridView control that uses ASP.NET Dynamic Data features.
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.
Available since 2.0