This Program Automatically Loads Database Table To A List Box Control and The Selected Value in List Box Will Appear in Data Grid View
This Program Automatically Loads Database Table To A List Box Control and The Selected Value in List Box Will Appear in Data Grid View
This Program Automatically Loads Database Table To A List Box Control and The Selected Value in List Box Will Appear in Data Grid View
This program
automatically loads
database table to a list
box control and the
selected value in list box
Presented
will appear
in By:
Data Grid
Marianie B. Gaitan
View.
BSIT3_BL1
Step 3. Select Visual C# and then select Windows Forms Application and click OK
Edit
your
project
name
here
Step 4. Create a form , drag the selected ListBox to the form, and also
the DataGridView from the ToolBox.
ListBox
1
DATA GRID
VIEW
Step 5. Select the name of your project here, then select Add and click Class.
Step 6. This step is almost the to step 5 except the name of the class,
select the name of your project here, then select Add and click Class.
Select Visual C# Items then select Class and
Name the class as ClassStudents.cs and click Add button below.
Click
this
Then go to the folder you download including this Power point and
select the student_students.sql file then OK and Click button
Start Import.
Click
this
Step 9. Heres the coding portion, go back to the Visual Studio 2012 Application
and go to DBConnect.cs and insert this code.
Start coding
here
Insert this
code
Continue coding
here
Continue coding
here
Insert this
Start coding
here
Continue coding
here