How Do You Bind a Grid

How Do You Bind a Grid

Open your Visual Studio 2010 and create an Empty Website, provide a suitable name (gridview_demo).In Solution Explorer you get your empty website, then add a web form and a SQL Server database as in the following. … In Server Explorer, click on your database (Database.

What is GridView in ASP NET?

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. The GridView control also, enables you to select, sort, and edit these items.

What is difference between GridView and DataGridView?

The DataGrid and the GridView controls have different event models. The DataGrid control raises single events for operations, while the GridView control is capable of both pre-operation and post-operation events. The GridView control supports the Sorting event that occurs when a field is sorted.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.