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:
virtual List<AutoGeneratedField^>^ CreateAutoGeneratedFields(
	Object^ dataItem,
	Control^ control
) abstract

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: