0% found this document useful (0 votes)
93 views17 pages

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 document provides a 10 step guide to creating a program that displays a list of students in a datagridview and allows the user to search by name or course. It includes steps to set up the visual studio project, add controls to the user interface, connect to a MySQL database, import student data, and code the search functionality. The user can select an item from a listbox to filter the datagridview by last name, first name or course.

Uploaded by

Joms Alancado
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)
93 views17 pages

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 document provides a 10 step guide to creating a program that displays a list of students in a datagridview and allows the user to search by name or course. It includes steps to set up the visual studio project, add controls to the user interface, connect to a MySQL database, import student data, and code the search functionality. The user can select an item from a listbox to filter the datagridview by last name, first name or course.

Uploaded by

Joms Alancado
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/ 17

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.

By. Jomar P. Alancado


BSIT B-1

Step 1. Open the Visual Studio 2012 or C# Application

Step 2. click new Project

Step 3. Select Visual C# and then select Windows Forms


Application after that 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.
listBo
x1

datagridvie
w1
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

Thank
you
Reference of the program:
I hope
You learn a lot

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy