CCP603
CCP603
ANDHRA PRADESH
Name : Y. Vijaya Bhaskara Reddy
Designation : Senior Lecturer
Branch : Commercial and Computer Practice
Institute : G.P.W., Kakinada.
Year/Semester : VI Semester.
Subject : Visual Basic – II
Subject Code : CCP-603.
Topic : Database Programming
Duration : 50 minutes.
Sub Topic : Data bound Controls
Teaching Aids : PPTs.
CCP603.33
OBJECTIVES
CCP603.33
STRUCTURE
CCP603.33
RECAP
CCP603.33
DATABASE PROGRAMMING
Displaying data through a bound control:
Bound controls provide access to specific data in your
database
Bound controls that manage a single field typically display the
value of a specific field in the current record
The DataSource property of a bound control specifies a valid
data source, and the DataField property specifies a valid field
name in the Recordset object created by the data source
Together, these properties specify what data appears in the
bound control
CCP603.33
DATABASE PROGRAMMING
Example – ListBox Control:
CCP603.33
Database programming
Example – listbox control (contd….):
The first item in the list is ListIndex 0, and the value of the
ListCount property is always one more than the largest
ListIndex value
To add or delete items in a ListBox control, use the
AddItem or RemoveItem method
A ListBox control that is bound to a Data control doesn't
support the AddItem method
CCP603.33
Database programming
Example – listbox control (contd….):
CCP603.33
QUIZ:
1. AddItem
2. RemoveItem
CCP603.33
FREQUENTLY ASKED QUESTIONS
CCP603.33
SUMMARY
Displaying data through bound controls
ListBox control
CCP603.33
ASSIGNMENT
CCP603.33
THANK YOU
CCP603.33