0% found this document useful (0 votes)
20 views

This Program Able To Displays List of Students in Datagridview. The System Allows The User To Search by Last Name, First Name and Course

This program able to displays list of students in Datagridview. The system allows the user to search by last name, first name and course.

Uploaded by

Lanie Gamayon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

This Program Able To Displays List of Students in Datagridview. The System Allows The User To Search by Last Name, First Name and Course

This program able to displays list of students in Datagridview. The system allows the user to search by last name, first name and course.

Uploaded by

Lanie Gamayon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

POST #4

THIS PROGRAM ABLE TO


DISPLAYS LIST OF STUDENTS
IN DATAGRIDVIEW. THE
SYSTEM ALLOWS THE USER TO
SEARCH BY LAST NAME, FIRST
NAME AND COURSE.
Submitted By: Lanie M. Gamayon
BSIT3b1

S T E P 1 . O P EN T H E VI S U A L S T U D I O 2 01 2 O R C #
A P P L I C A T IO N

S T E P 2 . C L I C K N EW PR O J EC T

S T E P 3 . S E L EC T VI S U A L C # A N D T H EN S E L E C T
W I N D O W S F O R M S A PP L I C A T IO N A F T E R T H A T
CLICK OK

Edit the name


Of your project
here

Step 4.Create a form like this, drag the listbox, button and datagridview to the
form.
listBox
1

datagridview1
Second
Edit here

button
1

Select listbox1 and then right click or go to properties


And edit the collection into First Year, Second Year, Third Year
And Fourth Year just like above.

Click this
first

STEP 5.SELECT THE NAME OF YOUR PROJECT HERE, THEN SELECT ADD AFTER
THAT CLICK CLASS.

Select Visual C# Items then select Class and


Name the class as DBConnect.cs after that click
Add button below.

Step 6. Select Reference in solution Explorer and then select Add reference

Click browse then go to


C:\Program Files (x86)\MySQL\Connector NET
6.7.4\Assemblies\v4.5
If v4.5 didn't work choose v2.0 or v4.0 version
After that select the MySql.Data.dll
And MySql.Data.Entity.dll

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 7. GO TO DESKTOP AND OPEN THE MYSQL


WORKBENCH APPLICATION IF YOU DONT HAVE THEN
TRY TO INSTALL THE INSTALLER INSIDE THE FOLDER
OF AUTOMATIC LOAD DATABASE
THEN USE PASSWORD: ADMIN WHEN THE
INSTALLATION IS NEAR TO COMPLETE, AFTER THAT
OPEN THE MYSQL WORKBENCH APPLICATION THEN
CLICK OR OPEN THE LOCAL INSTANCE THEN TYPE THE
PASSWORD: ADMIN AFTER THAT, GO TO MANAGEMENT
THEN SELECT DATA IMPORT/RESTORE THE FOLLOW
THE
INSTRUCTION BELOW.

Select this

Click this

STEP 8. HERES THE CODING PORTION, GO BACK TO THE VISUAL STUDIO 2012
APPLICATION AND GO TO DBCONNECT.CS AND INSERT THIS CODE.

Insert
this code

Start coding
here

Continue coding
here

Continue coding
here

Step 9. Go to your form1 or design double click the form


and insert this code.

Insert this

Start coding here

Continue coding
here

Continue coding
here

Step 10. F5 to run the program and the output is look like
this. Select an item from listBox to search

REFERENCES

You might also like