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?
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 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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With