Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxColorPalette.ColumnCount Property

Specifies the number of columns in the Color Palette.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(10)]
[Parameter]
public int ColumnCount { get; set; }

#Property Value

Type Default Description
Int32 10

The number of columns.

#Remarks

Use the ColumnCount property to specify the number of columns in the palette.

Razor
<DxColorPalette @bind-Value="@Value"
                ColumnCount="5">
    <Groups>
        <DxColorPaletteGroup Header="Warm"
                             Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Warm)" />
        <DxColorPaletteGroup Header="Cold"
                             Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.Cold)" />
    </Groups>
</DxColorPalette>

@code {
    string Value { get; set; }
}

Palette Column Count

Run Demo: Color Palette - Columns

See Also