DxFormLayoutGroup.CssClass Property

Specifies the name of the CSS class applied to the group.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll


public string CssClass { get; set; }

Property Value

Type Description

A CSS class name.


Use the CssClass property to apply a CSS class to a Form Layout group.

    .my-class {
        color: blue;

<DxFormLayout Data="forecast">
    <DxFormLayoutGroup Caption="Weather Forecast" CssClass="my-class">
        <DxFormLayoutItem Caption="Date" Field="@nameof(WeatherForecast.Date)" ReadOnly="true" />
        <DxFormLayoutItem Caption="Temperature" Field="@nameof(WeatherForecast.TemperatureC)" Enabled="false" />

@code {
    public class WeatherForecast
        public DateTime Date { get; set; }
        public int TemperatureC { get; set; }

    WeatherForecast forecast = new WeatherForecast()
        Date = new DateTime(2020, 05, 11),
        TemperatureC = 20,

CSS class applied

To customize only the group’s header, use the HeaderTemplate and HeaderCssClass properties.

Refer to following topic for more information: CSS Classes.

See Also