Basic Column, Row, and Cell Features in the Windows Forms DataGridView Control
Many basic behaviors of DataGridView cells, rows, and columns can be modified by setting single properties. The topics in this section describe several of the most commonly used of these features.
In This Section
How to: Hide Columns in the Windows Forms DataGridView Control
Describes how to prevent specific columns from appearing in the control.How to: Hide Column Headers in the Windows Forms DataGridView Control
Describes how to prevent the column headers from appearing in the control.How to: Enable Column Reordering in the Windows Forms DataGridView Control
Describes how to enable users to rearrange columns in the control.How to: Freeze Columns in the Windows Forms DataGridView Control
Describes how prevent one or more adjacent columns from scrolling.How to: Make Columns Read-Only in the Windows Forms DataGridView Control
Describes how to prevent users from editing specific columns in the control.How to: Prevent Row Addition and Deletion in the Windows Forms DataGridView Control
Describes how to remove the row for new records at the bottom of the control to prevent users from adding rows. Also describes how to prevent users from deleting rows.How to: Get and Set the Current Cell in the Windows Forms DataGridView Control
Describes how to access the cell that currently has focus in the control.How to: Display Images in Cells of the Windows Forms DataGridView Control
Describes how to create an image column that displays an icon in every cell.
Reference
- DataGridView
Provides reference documentation for the control.
Related Sections
Basic Formatting and Styling in the Windows Forms DataGridView Control
Provides topics that describe how to modify the basic appearance of the control and the display formatting of cell data.Programming with Cells, Rows, and Columns in the Windows Forms DataGridView Control
Provides topics that describe how to program with cell, row, and column objects.
See Also
Concepts
Column Types in the Windows Forms DataGridView Control