Back to Devexpress

FormBuilder<T>.ColCount(Mode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-formbuilder-1-dot-colcount-x28-devextreme-dot-aspnet-dot-mvc-dot-mode-x29.md

latest1.2 KB
Original Source

FormBuilder<T>.ColCount(Mode) Method

The count of columns in the form layout. Mirrors the client-side colCount option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FormBuilder<T> ColCount(
    Mode value
)

Parameters

NameTypeDescription
valueMode

The option value.

|

Returns

TypeDescription
FormBuilder<T>

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Form()
    .ColCount(Mode.Auto)
)

See Also

FormBuilder<T> Class

FormBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace