In the above code, we have added GridView Control, but with that, we are also allowing paging in this gridview by using " AllowPaging= True" and calling method " OnPageIndexChanging="OnPageIndexChanging"", each page will show 10 rows so " PageSize =10" aspx page, we will create grid view using the code below, or you can simply drag and drop it from "Toolbox' on the left of Visual Studio Step 2: Now, create a new Web-Form page, Right-Click on your Project name in the Solution Explorer, Select "Add", then Select "New item", from list select "Web Form" and name it " Default.aspx" Then on the next screen, Select Empty project, but check "Web-Forms", and click "Ok".
Step 1: Navigate to File-> New -> Project->Select "ASP.NET Web Application" from right pane and Select "Web" from left pane Let's create a new project in Visual Studio (I am using Community 2017 version), Connecting GridView to bind data in ASP.NET
Built-in update and delete capabilities.Binding to data source controls, such as SqlDataSource.The GridView control supports the following features: The GridView control also, enables you to select, sort, and edit these items.
Gridview is a control in asp.net, displays the values of a data source( sql server database) in a tabular form where each column represents a field and each row represents a record. So, in this article, I have explained how we can use gridview in asp.net web-form to show database table data in it. In ASP.NET web-forms, GridView Control plays the major rols to display data in tabular form, we can also bind it with database table data and edit/add more data.