DATA GRID VIEW objective of lecture:- After completing this lecture, you will be able to: Create a data grid view object on a windows form and use it to.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Advertisements

Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Microsoft Office 2007 Access Chapter 4 Creating Reports and Forms.
Microsoft Excel 2010 Chapter 7
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Microsoft Visual Basic 2012 CHAPTER TEN Incorporating Databases with ADO.NET.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Web Feature Sharing Data among Applications.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 2 Querying a Database
Chapter 3 Maintaining a Database
Databases and LINQ Visual Basic 2010 How to Program 1.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Chapter 15: Using LINQ to Access Data in C# Programs.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
1 Databound Controls. 2 Objectives You will be able to use design time data binding to display and update SQL Server database data without writing any.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Thirteen Working with Access Databases and LINQ.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
There are seven main components of a database in Access 2000: Tables. Use tables to store database information. Forms Use forms to enter or edit the information.
Chapter Thirteen Working with Access Databases and LINQ Programming with Microsoft Visual Basic th Edition.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
I. Getting Started with the Interface Microsoft ® Windows ® Movie Maker.
 The ribbon is the primary form of navigation in the Microsoft Office 2007 system.  There are seven Tabs on the Ribbon, more (contextual) tabs will.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Build a database V: Create forms for a new Access database Overview: A window into your data So far in this series of courses, you’ve built tables, relationships,
Microsoft Access 2010 Chapter 4 Creating Reports and Forms.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Create ReportsCreate Reports Lesson 6 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Access Microsoft Access 2013.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
Understand Databound Controls Windows Development Fundamentals LESSON 4.2A.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Microsoft Office XP Illustrated Introductory, Enhanced Started with Access 2002 Getting.
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
Visual Basic 2010 How to Program
Access Chapter 2 Querying a Database.
Querying a Database Using the Select Query Window
Sharing Data among Applications
Creating and Using a Database
CIS16 Application Programming with Visual Basic
Presentation transcript:

DATA GRID VIEW objective of lecture:- After completing this lecture, you will be able to: Create a data grid view object on a windows form and use it to display a database table. what is a Data grid view tasks Remove a column from a data gird view Object

Using DataGridView to display Database Records The datagirdview controls presents information by establishing a gird of rows and columns on a form to display data as you might see it in a program such as Microsoft office Excel or access DataGridView control can be used to display any type of tabular data : text, numbers, dates or the contents of any array

DATA GRID VIEW Establish a connection to adatabase table 1-Start visual, and create a new visual basic widows forms Application project named My datagrid View Sample 2- Click the add ---- New data source command on the data menu 3-Click the Database icon, and the click next The wizard prompts you to build a connection string, but if you completed the exercises in chapter 18, the Student database is automatically offered to you as shown in the screen

DATA GRID VIEW Establish a connection to adatabase table 4- with the student.mdb connection string highlighted. Click next 5- click next to save string in the default location 6- expand the tables node to see the name of seven tables in the database and an additional entry called swichboard items

DATA GRIDVIEW CONTROLS

DATA GRID VIEW Establish a connection to adatabase table 7- click the check mark next to the tables node to select all eight items

DATA GRIDVIEW CONTROLS 8- click finish to close the data source configuration wizard 9- click the save all a button on the standard toolbars to save the project 10- click the show data sources command on the data menu

DATA GRID VIEW The data source widow displays the objects in studentsDataSet, as shown in the illustration

1- Re size the form so that it covers most of screen 2- In the data sources window, click the Instruction table, and then click the arrow to its right to display the list of controls that can be bound to the instructors table on the form The Data sources window looks like this Create a data gird view object

انشاء شبكية بيانات

CREATE A DATA GIRD VIEW OBJECT

5- use the properties window to set the form’s Text property to “the instructor table”

DATA GIRD VIEW TASKS instructorsBinding source, an intermediary component that act as a conduit between instructors table and bound objects on the form

PREVIEW THE DATA BOUND TO A DATA GIRD VIEW OBJECTS

ازالة عمود من شبكية بيانات

Remove a column from a data gird view Object

Manage a data gird view object at run time

Me.InstructorsTableAdapter.Fill(Me.StudentsDataSet.Instructors) This line was added to your program by visual studio when you dragged the instructors table to the form from the data sources window. Manage a data gird view object at run time You can resize columns at run time because the data gird view object’s Allow user To Resize columns property is by default set to true If you want to prevent resizing, you can set this property to false.

The arrow identifies the current sort key ( the instructor column ) and indicates an ascending order (A-Z) The instructors table sorted alphabetically by instructor name Manage a data grid view object at run time