Page 277 - Open Soource Technologies 304.indd
P. 277
Unit 12: ADO Data Control
OLEGiveFeedback
OLESetData
OLEStartDrag New implementation.
OnAddNew RowsAdded
RowColChange CurrentCellChanged
RowResize RowHeightChanged
SelChange SelectionChanged
SplitChange New implementation. Split views are not directly supported; use a
SplitContainer control.
Validate Validating
Using Microsoft DataGrid Control 6.0
DataGrid control is the not the default item in the Visual Basic control toolbox, you have add
it from the VB6 components. To add the DataGrid control, click on the project in the menu
bar and select components where a dialog box that displays all the available VB6 components.
Select Microsoft DataGrid Control 6.0 by clicking the checkbox beside this item. Before you
exit the dialog box, you also need to select the Microsoft ADO data control so that you are
able to access the database. Lastly, click on the OK button to exit the dialog box. Now you
should be able to see that the DataGrid control and the ADO data control are added to the
toolbox. The next step is to drag the DataGrid control and the ADO data control into the form.
The components dialog box is shown below:
LOVELY PROFESSIONAL UNIVERSITY 271