Bewerken

Delen via


DetailsView.CreateAutoGeneratedRows(Object) Method

Definition

Creates a set of automatically generated row fields for the specified data item.

protected:
 virtual System::Collections::ICollection ^ CreateAutoGeneratedRows(System::Object ^ dataItem);
protected virtual System.Collections.ICollection CreateAutoGeneratedRows (object dataItem);
abstract member CreateAutoGeneratedRows : obj -> System.Collections.ICollection
override this.CreateAutoGeneratedRows : obj -> System.Collections.ICollection
Protected Overridable Function CreateAutoGeneratedRows (dataItem As Object) As ICollection

Parameters

dataItem
Object

The data item for which to create the automatically generated row fields.

Returns

An ICollection that contains the automatically generated row fields for the specified data item.

Exceptions

The DetailsView control does not have any properties or attributes from which to generate fields.

Remarks

When the AutoGenerateRows property is set to true, the CreateAutoGeneratedRows method is called by the DetailsView control to create a set of automatically generated row fields for the current data item.

Notes to Inheritors

When extending the DetailsView class, you can override this method to create your own set of automatically generated row fields.

Applies to

See also