Asp.net-data binding control-Table binding control

Source: Internet
Author: User

Data Binding Web Server Control is a control that can be bound to a data source to implement web applications.ProgramAllows you to easily display and modify data. The Web Server Control for Data Binding combines other ASP. NET Web controls (such as label and textbox controls) into a composite control in a single layout.
For example, a data binding control such as the detailsview control can be bound to a result set. For example, an employee table containing the name, address, and position of each employee. In the detailsview control, you can bind the label control to a single data value (such as a name or address field) to create a data layout on the page.
By using the data binding control, you can not only bind the control to a data result set, but also use the template to customize the layout of the control. They also provide convenient models for processing and canceling events.

This section discusses the following controls:
Detailsview Control -- The detailsview control displays a record in the form of a table at a time, and provides the ability to read multiple records and insert, update, and delete records.
Formview Control The -- formview control is similar to the detailsview control, which displays a record in the data source at a time,
It also provides the ability to read multiple records and insert, update, and delete records.
However, the difference between the formview control and the detailsview control is that the detailsview control uses a table-based layout,
In this layout, each field of the data record is displayed as a row in the control.
Repeater control -- The Repeater control displays a read-only list using a set of records returned by the data source.
Datalist Control The -- datalist control displays data in the form of a table. With this control, you can use different la s to display data records,
For example, data records are arranged in columns or rows.
The datalist control differs from the Repeater control in that the datalist control explicitly places items in the HTML table, while the Repeater control does not.
Listview Control The -- listview control displays data from the data source in the format defined by the template.
This template contains the formats, controls, and binding expressions used to set the data layout.
The listview control is useful for data in the repeater structure. It is similar to the datalist and repeater controls.
However, unlike the datalist and repeater controls:
The listview control supports implicit editing, insertion, and deletion, as well as sorting and paging.
Gridview Control -- The gridview control displays data in the form of a table, and provides the ability to sort columns, read data, and edit or delete a single record.
This is an important control.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.