Export (0) Print
Expand All
Expand Minimize

DetailsView.CreateAutoGeneratedRows Method

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

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

protected virtual ICollection CreateAutoGeneratedRows (
	Object dataItem
)
protected ICollection CreateAutoGeneratedRows (
	Object dataItem
)
protected function CreateAutoGeneratedRows (
	dataItem : Object
) : ICollection
Not applicable.

Parameters

dataItem

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

Return Value

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

Exception typeCondition

HttpException

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

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft