TAILIEUCHUNG - Beginning C# 2005 Databases PHẦN 4

của một hàng để xóa trong một truy vấn xóa). Tạo thủ tục lưu trữ mới: Tương tự như tùy chọn trên, nhưng SQL bạn nhập vào được sử dụng để tạo ra một thủ tục lưu trữ sau đó truy cập trực tiếp bởi các mục truy vấn. Đây cũng có thể được tham số. Sử dụng thủ tục lưu trữ hiện tại: | Modifying Data 6. Move the Name column to the top of the column list and change its AutoSizeMode property to AllCells. 7. For the EndingId column a. Change the HeaderText property to Ending. b. Change the ColumnType property to DataGridViewComboBoxColumn. c. Change the DataSource property to the Ending table found under Other Data Sources o Project Data Sources o FolktaleDBDataSet as shown in Figure 4-6. .o None sourceBindingSource storyBindingSource 0 ijj other Data Sources Q-CkJ Project Data Sources FolktaleDBDataSet .0 Class Fication .3 Ending 3 SourlẶ .H Story I - Si Forml List Instances ti Add Project Data Source. Selecting a project data source creates an instance on the form and binds to it through a new Bindingsource. Figure 4-6 The Ending table data source d. Change the DisplayMember property to EndingType. e. Change the ValueMember property to EndingId. f. Change the Width property to 12 0. 8. For the Classifications column a. Change the HeaderText property to Classification. b. Change the ColumnType property to DataGridViewComboBoxColumn. c. Change the DataSource property to the Classification table found under Other Data Sources o Project Data Sources o FolktaleDBDataSet. d. Change the DisplayMember property to Classification. e. Change the ValueMember property to Classifications. f. Change the Width property to 12 0. 9. Change the AutoSizeMode property of the Summary column to Fill. 10. Add the following event handler for the event private void storyBindingSource_AddingNew object sender AddingNewEventArgs e Get data table view DataView dataTableView as DataView Create row from view 133 Chapter 4 DataRowView rowView Configure defaults rowView Storyid rowView Sourceid as DataRowView Sourceid rowView EndingId endingBindingSource 0 as DataRowView Endingid rowView ClassificationId classificationBindingSource 0 as DataRowView Classificationid .

Đã 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.