Bind and View Individual Text Boxes Based Off a Selected List Box Item
Số trang: 1
Loại file: pdf
Dung lượng: 21.49 KB
Lượt xem: 8
Lượt tải: 0
Xem trước 1 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
1,3 Bind và xem cá nhân Text Boxes Dựa Off một lựa chọn Danh sách Hộp khoản Sử dụng một hộp danh sách tương tự với một trong các trang trước How-To, trong How-To, bạn sẽ học cách tạo OleDbDataAdapters bổ sung và DataSets và nối kết chúng để cá nhân hộp văn bản cho dữ liệu xem.
Nội dung trích xuất từ tài liệu:
Bind and View Individual Text Boxes Based Off a Selected List Box Item 1.3 Bind and View Individual Text Boxes Based Off a Selected List Box ItemUsing a list box similar to the one in the previous How-To, in this How-To, you willlearn how to create additional OleDbDataAdapters and DataSets and bind them toindividual text boxes for viewing data.Although the list box is nice for displaying a couple of fields in my form and limiting therows displayed, how do you list the detail in individual text boxes by clicking on an itemin the list box?TechniqueYou are going to enhance the form that you created in How-To 1.2 to use additional datacontrols, specifically another data adapter and dataset. You will set up the selectstatement in the new data adapter to take the selected list box item as a parameter. Thedataset will then be filled with data, and some text boxes with the dataset set as the datasource will display the current record. You can see an example of this in Figure 1.7. Figure 1.7. You can bind text boxes to datasets as well as list boxes.
Nội dung trích xuất từ tài liệu:
Bind and View Individual Text Boxes Based Off a Selected List Box Item 1.3 Bind and View Individual Text Boxes Based Off a Selected List Box ItemUsing a list box similar to the one in the previous How-To, in this How-To, you willlearn how to create additional OleDbDataAdapters and DataSets and bind them toindividual text boxes for viewing data.Although the list box is nice for displaying a couple of fields in my form and limiting therows displayed, how do you list the detail in individual text boxes by clicking on an itemin the list box?TechniqueYou are going to enhance the form that you created in How-To 1.2 to use additional datacontrols, specifically another data adapter and dataset. You will set up the selectstatement in the new data adapter to take the selected list box item as a parameter. Thedataset will then be filled with data, and some text boxes with the dataset set as the datasource will display the current record. You can see an example of this in Figure 1.7. Figure 1.7. You can bind text boxes to datasets as well as list boxes.
Tìm kiếm theo từ khóa liên quan:
công nghệ máy tính phần mềm kỹ thuật lập trình lập trình dữ liệu Individual Text Boxes BasedTài liệu có liên quan:
-
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 310 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 249 0 0 -
6 trang 230 0 0
-
Giới thiệu môn học Ngôn ngữ lập trình C++
5 trang 223 0 0 -
Bài giảng Nhập môn về lập trình - Chương 1: Giới thiệu về máy tính và lập trình
30 trang 189 0 0 -
Luận văn: Nghiên cứu kỹ thuật giấu tin trong ảnh Gif
33 trang 160 0 0 -
Báo cáo thực tập Công nghệ thông tin: Lập trình game trên Unity
27 trang 127 0 0 -
Giáo trình về phân tích thiết kế hệ thống thông tin
113 trang 121 0 0 -
LUẬN VĂN: Tìm hiểu kỹ thuật tạo bóng cứng trong đồ họa 3D
41 trang 115 0 0 -
Bài giảng Kỹ thuật lập trình - Chương 10: Tổng kết môn học (Trường Đại học Bách khoa Hà Nội)
67 trang 113 0 0