Professional Documents
Culture Documents
The Program Enable To Display List of Students in Datagridview. The System Allows The User To Search by Last Name, First Name and Course
The Program Enable To Display List of Students in Datagridview. The System Allows The User To Search by Last Name, First Name and Course
4
The program enable to display list of
students in Datagridview. The system
allows the user to search by last name, first
name and course.
Cona, Wendy
BSIT3_b1
Step 3. Select Visual C# and then select Windows Forms Application after
that click ok
Step 4.Create a form like this, drag the listbox, button and
datagridview to the form.
listBox1
datagridview1
Second
Edit here
button1
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 this
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
Code continue
Code continue
Step 9. Go to your form1 or design double click the form and insert
this code.
Insert this
Code continue
Code continue
Step 10. F5 to run the program and the output is look like this.
Select an item from listBox to search
Reference/installer:
ThankYou
Hope you like it.