Today I am Going to Show You How To Bind Data in Datagridview ?
So, First Start Your Visual Studio 2010. 1. Open New Project.
2.Select Visual Basic and select Windows Form Application.
3.After Than You Will See a Application Form.
4.After You design Your Form Shown Below.
5.Now You Create a Simple Data base.
-Click Solution Exploler(Alt + Ctrl + L).
-Right Click In Your Application in Solution Exploler.
-and Click Add New Item.
-Than Select Data in service-based-database.
6. After Create a database you add Table in database Shown Belo.
7. Id Numaric(18, 0) Datatype.
Name Varchar(50) Datatype.
Address Varchar(50) Datatype.
Mobile No Numaric(18, 0) Datatype.
City Varchar(50) Datatype.
Email Varchar(50) Datatype.
Website Varchar(50) Datatype.
8.Than Save Table and Give Table Name.(Ctrl + S).
9.Than Open Table in server Exploler and Right click on The Table and Select Show Table Data.
10.After Than Feel The Data in Table Shown Below.
11.After (Ctrl + S).
12.Select The Datagridview and Click to Top Right Cornner in Datagridview Shown Below.
13.And Select The Choice Data Source.
14.And Select The Table.
15. Now Run The Application.(F5)
|
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
If you have any kind of question about any post, Feel free to ask.You can simply drop a comment below post. Your feedback and suggestions will be highly appreciated. ConversionConversion EmoticonEmoticon