Page 264 - Open Soource Technologies 304.indd
P. 264
Event Driven Programming Anil Sharma, Lovely Professional University
Unit 12: ADO Data Control
CONTENTS
Objectives
Introduction
12.1 Recordset and Field Objects
12.1.1 Using ADOCE
12.1 ConnectionString Properties
12.3 Displaying Data from Database in Grid
12.3.1 Conceptual Differenece
12.3.2 Code Changes for the DataGrid Control
12.4 DataGrid Control Property, Method, and Event Equivalencies
12.4.1 Properties
12.4.2 Methods
12.4.3 Events
12.5 Summary
12.6 Keywords
12.7 Self Assessment Questions
12.8 Review Questions
12.9 Further Readings
Objectives
After studying this unit, you will be able to:
• Explain the recordset and filed objects.
• Discuss connection string properties.
• Displaying data from database in grid.
• Discuss data grid control property, method.
• Explain event equivalencies.
Introduction
The ADO data control presents a fast and easy way to create a bound form by providing
built-in functions that define, navigate, display, add to, and update the records in a recordset.
The resulting form makes it easy for a user to maintain records. Although the data control
defines the record set, you’ll still need a control for each field to automatically display the
bound records.
258 LOVELY PROFESSIONAL UNIVERSITY