WinForms数据网格(GridControl类)是一个数据感知控件,可以以各种格式(视图)显示数据。本主题包含以下部分,这些部分将指导您如何使用网格控件及其视图和列(字段)。
- Grid Control's Views -网格控件的视图
- Select a View -选择视图
- Supply Data for Views and Populate Column Collection -为视图提供数据并填充列集合
- Access and Customize Views and Columns at Design Time -在设计时访问和自定义视图和列
- Access and Customize Views and Columns in Code -访问和自定义代码中的视图和列
- Layout of Columns and Bands (in Grid Views and Banded Grid Views) -柱和标注栏的布局(在轴网视图和标注栏轴网视图中)
- Learn More
Grid Control's Views -网格控件的视图
The WinForms Data Grid control supports multiple data presentation formats.
Tabular | 表格 |
Banded tabular | 带状表格 |
Cards | 卡 |
Windows UI-inspired Tiles | Windows UI启发的互动程序 |
Windows Explorer-inspired UI | Windows资源管理器启发的用户界面 |
上面的显示格式由Views封装,Views是可以嵌入到数据网格中的可视化组件。
为"网格"控件指定适当的"视图",以便以特定方式显示数据。使用视图的属性、事件和方法可以自定义视图的外观。
Grid View (GridView class)
网格视图 Grid View
Banded Grid View (BandedGridView class)
带状网格视图 Banded Grid View
Advanced Banded Grid View (AdvBandedGridView class)
高级带状网格视图 Advanced Banded Grid View
Layout View (LayoutView class)
布局视图 Layout View
Card View (CardView class)
卡片视图 Card View
WinExplorer View (WinExplorerView class)
WinExplorer视图 WinExplorer View
Tile View (TileView class)
平铺视图 Tile View
Select a View
待续。。。