DetailsView.CreateAutoGeneratedRows(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für