DataListRowTemplate Property

The template control type to use for rows in the data source

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.18.0+3a863295c73252b22e8ab6862ed6bdc57bcbd0fc
public Type? RowTemplate { get; set; }

Property Value

Type

Remarks

One row template will be created for each row in the data source. Rows are initialized and bound as they are scrolled into view to improve performance. This property must be set in order to edit information in the data source.

Example

C#
// AddressTemplate is a user control derived from TemplateControl
dataList.RowTemplate = typeof(AddressTemplate);

Exceptions

ArgumentExceptionThis is thrown if the specified type is not derived from TemplateControl.

See Also