TAILIEUCHUNG - Creating a DataSet Object Using Visual Studio .NET

Creating a DataSet Object Using Visual Studio .NET In this section, you'll learn how to create a DataSet using Visual Studio .NET. Note You'll find a completed VS .NET | Creating a DataSet Object Using Visual Studio .NET In this section you ll learn how to create a DataSet using Visual Studio .NET. Note You ll find a completed VS .NET example project for this section in the DataSet directory. You can open this project in VS .NET by selecting File Open Project and opening the file. You can also follow along with the instructions in this section by continuing to modify the copy of the DataReader project you used in the previous section. If you re following along with these instructions open your copy of the DataReader project you modified in the previous section and open by double-clicking it in the Solution Explorer window. To create a DataSet object you can perform either one of the following Drag a DataSet object from the Data tab of the Toolbox to your form and add code to your form to fill it using the Fill method of a DataAdapter object. Click the Generate Dataset link at the bottom of the Properties window of your DataAdapter. You can see this link in Figure . You ll use the second step so go ahead and click the Generate Dataset link. The Generate Dataset dialog box is then displayed as shown in Figure . Figure The Generate Dataset dialog box Click the OK button to continue. The new DataSet object named dataSet11 is added to the tray beneath your form as shown in Figure . Figure The new DataSet object in the tray Your next step is to set the Form1_Load method of your form as follows private void Form1_Load object sender e dataSet11 Products myDataTable Products foreach myDataRow in myDataRow ProductID .ToString myDataRow ProductName .ToString myDataRow UnitPrice .ToString Note Remember to view the code of your form you select View Code. You then replace

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.