TAILIEUCHUNG - Using the Data Form Wizard to Create a Windows Form phần 2

Figure : Creating a relationship between two tables Note Remember: You're unselecting these columns, so you uncheck the columns for the Orders table | Figure Creating a relationship between two tables Note Remember You re unselecting these columns so you uncheck the columns for the Orders table. Figure shows the completed dialog box with the selected columns to display from each table. Figure Selecting the columns to display from each table 8. Click the Next button to proceed. 9. Select the display style for the rows also known as records in the parent table that are displayed in your form. You can display the rows in a grid or you can display each column using a separate control. You ll use a separate control for the columns so select the Single Record in individual controls radio button. The other check boxes in the dialog box allow you pick the controls you want to add to your form. These controls affect the rows in the master table and you can add the following controls to your form Note In this example the parent table is the Customers table and the child table is the Orders table. The rows for the child table are displayed in a DataGrid control. o Cancel All The Cancel All button allows you to undo any changes you ve made to the current row. o Add The Add button allows you to add a new row. o Delete The Delete button allows you to delete the current row. o Cancel The Cancel button allows you to cancel a change made to the current row. o Navigation Controls The Navigation controls consist of four buttons that allow you to move to first row the previous row the next row and the last row. An indicator is also displayed to show the current row. Figure shows the completed dialog box. Figure Choosing the display style 10. You ve now completed all the steps in the Data Form Wizard. Click the Finish button to create your form. VS .NET will now display the new form as shown in Figure . Figure The completed form The managed provider objects in your form use the OLE DB classes contained in the namespace-even though a SQL Server database is used. These objects work .

TÀI LIỆU LIÊN QUAN
10    127    1
6    150    1
7    127    1
5    125    1
6    127    1
6    115    1
6    122    1
6    174    1
7    122    1
5    97    1
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.