Back to Devexpress

ASPxVerticalGrid.Selection Property

aspnet-devexpress-dot-web-dot-aspxverticalgrid-aac26fbf.md

latest2.1 KB
Original Source

ASPxVerticalGrid.Selection Property

Gets the ASPxVerticalGrid’s selection.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public VerticalGridSelection Selection { get; }
vb
Public ReadOnly Property Selection As VerticalGridSelection

Property Value

TypeDescription
VerticalGridSelection

A VerticalGridSelection object that is the ASPxVerticalGrid’s selection.

|

Remarks

The ASPxVerticalGrid allows multiple records to be selected. The object returned by the Selection property provides methods that allow you to select and deselect individual records, or all records, obtain the number of selected records, etc. End-users can select/deselect records using the Select command item, which is a check box or a link:

The style settings used to paint selected records can be accessed using the VerticalGridStyles.SelectedRecord property.

To respond to changing a selection, handle the ASPxGridBase.SelectionChanged event.

See Also

SelectedRecord

SelectionChanged

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace