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

BootstrapGridViewBuilderBase<T>.Columns(Action<BootstrapGridViewColumnCollectionBuilder>) Method

Provides access to the Grid View column collection.

Namespace: DevExpress.AspNetCore.Bootstrap

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


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


Name Type Description
config Action<BootstrapGridViewColumnCollectionBuilder>

An Action that configures the BootstrapGridViewColumnCollectionBuilder's functionality.


Type Description

A reference to this instance after the operation is completed.



Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The Grid View control stores its columns in the Columns collection. Use the Add method to add a column to a Grid View's column collection.

@model IEnumerable

    .KeyFieldName(m => m.ProductID)
    .Columns(columns => {
        columns.Add(m => m.ProductName);
        columns.Add(m => m.UnitPrice);
        columns.Add(m => m.UnitsOnOrder);
            .UnboundExpression("UnitsOnOrder * UnitPrice")
            .PropertiesTextEdit(properties => properties
    .Routes(routes => routes
        .MapRoute(r => r
See Also