Skip to main content
A newer version of this page is available. .

GridView.GetSelectedCells(Int32) Method

Returns the columns where the selected cells in the specified row reside.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public virtual GridColumn[] GetSelectedCells(
    int rowHandle
)

Parameters

Name Type Description
rowHandle Int32

An integer value which identifies the row.

Returns

Type Description
GridColumn[]

An array of GridColumn objects that contain the selected cells in the specified row.

Remarks

If block selection is disabled or there are no selected cells, the GetSelectedCells method returns an empty array.

Use the ColumnViewOptionsSelection.MultiSelect and GridOptionsSelection.MultiSelectMode properties to enable block selection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetSelectedCells(Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also