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
Msdatlst.ocx DBList98.chm |
The DataCombo control allows retrieved data to appear in a drop-down combo box.
To link the DataCombo control to a data source
DataSource and DataField govern the active value of the control. RowSource and ListField allow the display of column data other than the current record. You can also set BoundColumn; this property represents the value of the control when it is made into a variable in an MFC application. |
Microsoft DataGrid
Msdatgrd.ocx DBGrid98.chm |
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
Msdatlst.ocx DBList98.chm |
The DataList control allows retrieved data to appear in a drop-down list box.
To link the DataList control
DataSource and DataField govern the active value of the control. RowSource and ListField allow the display of column data other than the current record. You can also set the BoundColumn value. This value represents the value of the control when it is made into a variable in an MFC application. |
Microsoft DataRepeater
Msdatrep.ocx DatRpt98.chm |
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. |
Microsoft Hierarchical FlexGrid
Mshflxgd.ocx MsHFlx98.chm |
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
Mschart.ocx MSchrt98.chm |
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 (not Visual C++), so you must have a Visual Studio 6.0 license to redistribute it. |