共用方式為


DataGridView Control Code Directory (Windows Forms)

This topic provides links to DataGridView-related code examples available in the documentation.

NoteNote

A link always jumps to the top of the topic in which the code example is found.

Additional code examples are available in the class library reference documentation. For a list of the principal classes and interfaces associated with the DataGridView control, see the table in DataGridView Control Technology Summary (Windows Forms).

Unbound Data Examples

Data Binding Examples

Data Formatting Examples

Data Validation Examples

Appearance Customization Examples

Behavior Customization Examples

Column Manipulation Examples

Row and Column Sizing Examples

Selection Examples

Advanced Customization Examples

Advanced Data Examples

See Also

Reference

DataGridView Control Overview (Windows Forms)
DataGridView