tailieunhanh - Display Data Using the Table Control .NET

5,4 Hiển thị dữ liệu Sử dụng bảng điều khiển. NET có một số điều khiển có sẵn để hiển thị dữ liệu. Làm thế nào để tôi biết được điều khiển để sử dụng để hiển thị dữ liệu, và làm thế nào để tôi sử dụng điều khiển Bảng để hiển thị dữ liệu? | Display Data Using the Table Control .NET has a number of controls available for displaying data. How do I know which control to use to display data and how do I use the Table control to display data Technique When you re first deciding to list data on your Web forms you have a few Web server controls to choose from Table. This Web server control allows you to create a read-only table type display of data. This control is not data bound and it uses the TableColumn and TableRow objects for creation. Repeater. This control is used to display read-only lists. You can use hyperlinks and program the ItemCommand event so that you can perform actions when items are selected. You must use templates to format the display. Templates are discussed in How-To as is the Repeater control. This is a great control for quick lists. DataList. Using this control you will use templates not only to display but also to select and edit data in the list. DataGrid. By far this is the most powerful of the controls. In addition it gives you the most control over manipulating data. You display sort edit and use various types of controls in each column. The last three How-Tos in this chapter thoroughly cover the DataGrid control. Anatomy of the Table Web Server .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.