BootstrapCardViewBuilderBase<T>.Columns(Action<BootstrapCardViewColumnCollectionBuilder>) Method

Provides access to the Card View column collection.

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll


public T Columns(
    Action<BootstrapCardViewColumnCollectionBuilder> config
Public Function Columns(
    config As Action(Of BootstrapCardViewColumnCollectionBuilder)
) As T


Type Name Description
Action<BootstrapCardViewColumnCollectionBuilder> config

An Action that configures the BootstrapCardViewColumnCollectionBuilder's functionality.


Type Description

A reference to this instance after the operation is completed.


The Card View control stores its data columns in the Columns collection. Each column corresponds to a Card View item.

Use the Add method to add a column to a Card View's column collection.

@using EditableTask = DevExpress.AspNetCore.DemoModels.Task
@model IEnumerable<EditableTask>
    .Columns(columns => {
        columns.Add(m => m.Name);
        columns.Add(m => m.StartDate);
        columns.Add(m => m.EndDate);
        columns.Add(m => m.Done);
    .Routes(routes => routes
        .MapRoute(r => r

For more information on available Card View column types, refer to the Column Types online demo.

See Also