Skip to main content

Select Rows and Cells

  • 2 minutes to read

Read Tutorial: Select Rows and Cells in Code

Select Individual Rows and Cells

End users can use navigation keys and the mouse to select individual data items within the GridControl.

Select Multiple Items

To select all visible data items:

  1. Check that the cell’s in-place editor is closed
  2. Press Ctrl + A

Note

Check that the DataViewBase.NavigationStyle and DataControlBase.SelectionMode properties are not set to None.

Select Multiple Rows

Refer to the following topic for additional information: Row Selection.

The Row Selection Mode

Tip

Use the TableView.RowIndicatorSelectedBackground / TreeListView.RowIndicatorSelectedBackground property to apply a custom background brush to the Row Indicator Panel cells of selected and focused rows.

The MultipleRow Selection Mode

  • Click a row to select/unselect it:

    Select a row with a single click in MultipleRow mode - WPF Data Grid, DevExpress

  • Focus a row with the keyboard and press Space to select/unselect it:

    Select a row with the Space key in MultipleRow mode - WPF Data Grid, DevExpress

Select Multiple Cells

Refer to the following help topic for more information: Multiple Cell Selection Mode.

  • Hold Ctrl and click multiple cells to select/unselect them:

    Select multiple cells with Ctrl+Click - WPF Data Grid, DevExpress

  • Select the initial cell, hold Shift, and use the mouse or navigation keys to select the last cell of the range:

    Select a range of cells with Shift and navigation keys - WPF Data Grid, DevExpress

  • Hold Ctrl, focus a cell with the keyboard, and press Space to select/unselect it:

    Select a cell with Ctrl+Space using the keyboard - WPF Data Grid, DevExpress

  • Hold the left mouse button and drag the pointer to select a range of cells (also, you can use the Selection Rectangle):

    Select a range of cells by dragging the pointer - WPF Data Grid, DevExpress

See Also