tags:

views:

3298

answers:

5

GridView/DetailView/FormView will be used for displaying tabular data. Let me know about what are the differences these three also where we use?

A: 

GridView shows them all like an HTML table. If you click on a key in a row, DetailView shows the details for the row in a separate space. If you need to insert a new row, FormView appears also in a separate space.

yogman
+3  A: 

Well, I'd read the ASP.Net QuickStart Tutorials which give a good overview of each control:

ASP.NET Quickstart Tutorials

If you're displaying "tabular" data, then you're probably going to use DetailsView as it's designed for master-detail relationships and has tabular rendering built-in (FormsView does not)

Gunny
+1 That's a great site.
Dave
+5  A: 

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.

craigmoliver
A: 

Form view is data bound it is user interface control but details view has a build in tablur rendering

Arul
A: 

gridview is use to view data only,we cant do any modification(editing or inserting is not possible).

dataview is use to view,edit or insert data.dataview has built in tabular rendering.it will generate them for you in a straight top to down list with no possibility of moving them around to make them more user friendly...

in formview ,you can position the element whereever u want them on the page.it means formview provide user define template for its rendering..

ambika gupta