intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Bind and View Individual Text Boxes Based Off a Selected List Box Item

Chia sẻ: Bui Tuan | Ngày: | Loại File: PDF | Số trang:1

65
lượt xem
2
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

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.

Chủ đề:
Lưu

Nội dung Text: Bind and View Individual Text Boxes Based Off a Selected List Box Item

  1. 1.3 Bind and View Individual Text Boxes Based Off a Selected List Box Item Using a list box similar to the one in the previous How-To, in this How-To, you will learn how to create additional OleDbDataAdapters and DataSets and bind them to individual text boxes for viewing data. Although the list box is nice for displaying a couple of fields in my form and limiting the rows displayed, how do you list the detail in individual text boxes by clicking on an item in the list box? Technique You are going to enhance the form that you created in How-To 1.2 to use additional data controls, specifically another data adapter and dataset. You will set up the select statement in the new data adapter to take the selected list box item as a parameter. The dataset will then be filled with data, and some text boxes with the dataset set as the data source 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.    
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2