Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the major difference between GridView/DetailsView/FormView in ASP.net [closed]

What are the similarities and differences between GridView, DetailView, FormView?

What are use case scenarios for when you would use each of these controls and why?

like image 439
balaweblog Avatar asked Dec 28 '08 08:12

balaweblog


People also ask

What is the difference between GridView and DataGrid in asp net?

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.

What is difference between GridView and repeater control in asp net?

What is difference between Repeater and GridView control in ASP.NET? A GridView displays your data source in an HTML table and extends it to allow paging, sorting, editing etc. A repeater is a template control, where you specify the html that is used to render each row.

What is the difference between ListView and GridView in ASP NET?

Programmatic access to the ListView object model to dynamically set properties, handle events, and so on. Multiple key fields. GridView Displays the values of a data source in a table where each column represents a field and each row represents a record.


1 Answers

Formview is intended for insert/update/view of a single record.

DetailsView is intended for the displaying of a single record with optional support for paging and navigation.

GridView is intended to primarily to display/update multiple records. It's considered a replacement for the DataGrid control from .NET 1.1.

like image 60
craigmoliver Avatar answered Nov 15 '22 08:11

craigmoliver