AutoFieldsGenerator.CreateAutoGeneratedFields Method (Object, Control)

.NET Framework (current version)
 

When implemented in a derived class, creates autogenerated fields based on the current data item.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public abstract List<AutoGeneratedField> CreateAutoGeneratedFields(
	object dataItem,
	Control control
)

Parameters

dataItem
Type: System.Object

The current data item.

control
Type: System.Web.UI.Control

The data-bound control that will contain the autogenerated fields.

Return Value

Type: System.Collections.Generic.List<AutoGeneratedField>

The autogenerated fields.

This method typically populates the AutoGeneratedFieldProperties collection.

.NET Framework
Available since 4.5
Return to top
Show: