Đang chuẩn bị liên kết để tải về tài liệu:
Using the Default Sort Algorithm

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Using the Default Sort Algorithm If you want to sort the DataRowView objects in your DataView based on the primary key of your DataTable, you can use a shortcut. Instead of setting the Sort property of your DataView | Using the Default Sort Algorithm If you want to sort the DataRowView objects in your DataView based on the primary key of your DataTable you can use a shortcut. Instead of setting the Sort property of your DataView you set the PrimaryKey property of your DataTable and then set the ApplyDefaultSort property of your DataView to true. The Sort property of your DataView is then automatically set to the primary key of your DataTable. This causes the DataRowView objects in your DataView to be sorted in ascending order based on the primary key column values. Let s take a look at an example. The following code sets the PrimaryKey property of the customersDT DataTable to the CustomerlD DataColumn customersDT.PrimaryKey new DataColumn customersDT.Columns CustomerID The next example sets the ApplyDefaultSort property of customersDV to true customersDV.ApplyDefaultSort true The Sort property of customersDV is then set to CustomerlD which causes the DataRowView objects to be sorted by the ascending CustomerID values. Note You ll find the code examples in this section in the UsingDefaultSort.es program. The listing is omitted from this book for .

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.