Compartir a través de


Selection and Clipboard Use with the Windows Forms DataGridView Control

The 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

Reference

  • DataGridView
    Provides reference documentation for the DataGridView control.
  • ClipboardCopyMode
    Provides reference documentation for the ClipboardCopyMode property.

See Also

Reference

Default Keyboard and Mouse Handling in the Windows Forms DataGridView Control

Other Resources

DataGridView Control (Windows Forms)