A GridView is a graphical user interface element that presents a tabular view of data. Here we are going to learn how to bind grid view in asp.net. Gridview can be load using database or list. First take a look at how to bind gridview using list . In next post we can learn how to bind gridview with database. Step 1 : Create new New Website project in visual studio by selecting File -> New Project -> New Website. Name it as “GridViewExample” . Step 2 : Right click your project and create “New Form”. And the leave the name as default . Step 3 : Select the “GridView” from the toolbox and place it in the web form. Step 4 : Now we are going to create another class for storing the data. Right click the project and select New Item and name it as “Employee”. Then add the following code ...
Asp.Net,C#.Net,SQL Server Articles, Source Codes and Examples