Selection and Clipboard Use with the Windows Forms DataGridView Control
DataGridView control provides you with a variety of options for configuring how users can select cells, rows, and columns. For example, you can enable single or multiple selection, selection of whole rows or columns when users click cells, or selection of whole rows or columns only when users click their headers, which enables cell selection as well. If you want to provide your own user interface for selection, you can disable ordinary selection and handle all selection programmatically. Additionally, you can enable users to copy the selected values to the Clipboard.
In This Section
Selection Modes in the Windows Forms DataGridView Control
Describes the options for user and programmatic selection in the control.
How to: Set the Selection Mode of the Windows Forms DataGridView Control
Describes how to configure the control for single-row selection when a user clicks a cell.
How to: Get the Selected Cells, Rows, and Columns in the Windows Forms DataGridView Control
Describes how to work with the selected cell, row, and column collections.
How to: Enable Users to Copy Multiple Cells to the Clipboard from the Windows Forms DataGridView Control
Describes how to enable Clipboard support in the control.