The requested page is not available for the requested platform. You are viewing the content for Default platform.

CreateCustomDataItemTemplateEventArgs.CreateDefaultDataItemTemplate Property

Specifies if the default data item template should be created.

Namespace: DevExpress.ExpressApp.Web.Editors.ASPx

Assembly: DevExpress.ExpressApp.Web.v19.1.dll


public bool CreateDefaultDataItemTemplate { get; set; }
Public Property CreateDefaultDataItemTemplate As Boolean

Property Value

Type Description

true, if the default data item template should be created; otherwise, false.


You can enable data item templates for individual columns, e.g., for columns showing business objects, using the ASPxGridListEditor.CreateCustomDataItemTemplate event:

public class ViewController1 : ViewController<ListView> {
    ASPxGridListEditor gridListEditor;
    protected override void OnActivated() {
        gridListEditor = View.Editor as ASPxGridListEditor;
        if (gridListEditor != null) {
            gridListEditor.CreateCustomDataItemTemplate += gridListEditor_CreateCustomDataItemTemplate;
    void gridListEditor_CreateCustomDataItemTemplate(object sender, CreateCustomDataItemTemplateEventArgs e) {
        if (e.ModelColumn.PropertyEditorType.IsSubclassOf(typeof(ASPxObjectPropertyEditorBase))) {
            e.CreateDefaultDataItemTemplate = true;
    protected override void OnDeactivated() {
        if (gridListEditor != null) {
            gridListEditor.CreateCustomDataItemTemplate -= gridListEditor_CreateCustomDataItemTemplate;
            gridListEditor = null;
See Also