Skip to main content
All docs
V23.2
Row

ListBoxFormControl.SetSelected(Int32, Boolean) Method

Sets the specified item’s selection state.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v23.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void SetSelected(
    int index,
    bool value
)

Parameters

Name Type Description
index Int32

The zero-based index of the item whose selection state should be changed.

value Boolean

true to select the item; false to unselect the item.

See Also