ADO Data-Bound Controls
The following data-bound controls display data from the ADO data control. See Inserting the Control into a Visual C++ Application and Setting Control Properties at Design Time for information on using ActiveX controls.
|Control name and support files||Description|
|Microsoft DataCombo |
|The DataCombo control allows retrieved data to appear in a drop-down combo box.
To link the DataCombo control to a data source
|Microsoft DataGrid |
|DataGrid can hold text data, but not linked or embedded objects. The AllowAddNew, AllowDelete, and AllUpdate properties allow the DataGrid to modify data.|
|Microsoft DataList |
|The DataList control allows retrieved data to appear in a drop-down list box.
To link the DataList control
|Microsoft DataRepeater |
|The DataRepeater control is a composite control; a control that hosts other controls. It allows you to specify a control to repeat, and when bound, displays the selected control for each record retrieved. The DataRepeater will then allow end users to scroll through the retrieved records.
To link the DataRepeater control
The DataRepeater control also ships separately with Visual Studio 6.0 or later.
|Microsoft Hierarchical FlexGrid |
|The Hierarchical FlexGrid control displays tabular data. Unlike the DataGrid, it is strictly read-only. However, it can sort, merge, and format tables containing strings and pictures. Additionally, the Hierarchical FlexGrid differs from its predecessor, the FlexGrid, in that it can display both summary data and detail data.
A hierarchical rowset is required to display summary-detail information in the Hierarchical FlexGrid control. To create a hierarchical rowset for this control, the Microsoft Data Shape Provider is required in combination with the ADO data control.
To use the Hierarchical FlexGrid
For additional information on data shaping see the topic Hierarchical Cursors and Data Shaping in the ADO Programmer's Reference.
|Microsoft Chart |
|The Chart control displays an array of data as a graph. It can display both two-dimensional and three-dimensional graphs. When data-bound, it treats the retrieved rowset as an array of data.
To link the Chart control
It is recommended that the ADO data control's database query retrieve a rowset of aggregate information such as count(*), sum(*), min(*), and max(*).
Previous versions of the MS Chart control were RDO based.
Note The Chart control ships with Visual Studio 6.0 or later (not Visual C++), so you must have a Visual Studio 6.0 or later license to redistribute it.