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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈