Skip to main content
All docs
V24.2

DxListEditorColumn.VisibleIndex Property

Specifies a column’s position among other columns.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(-1)]
[Parameter]
public int VisibleIndex { get; set; }

Property Value

Type Default Description
Int32 -1

The column’s visible index.

Remarks

@using StaffData

<DxListBox Data="@Staff.DataSource"
           @bind-Values="@Values">
    <Columns>
        <DxListEditorColumn FieldName="FirstName" Caption="Name" VisibleIndex=1 />
        <DxListEditorColumn FieldName="LastName" Caption="Surname" VisibleIndex=2 />
        <DxListEditorColumn FieldName="Id" Width="50px" VisibleIndex=0 />
    </Columns>
</DxListBox>

@code {
    IEnumerable<Person> Values { get; set; } = Staff.DataSource.Take(1);
}

List Box - Multiple Columns

Run Demo: List Box – Multiple Columns

Implements

See Also