1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu The DataRowView Class doc

2 322 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề The DataRowView Class
Thể loại Tài liệu
Định dạng
Số trang 2
Dung lượng 26,33 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

A DataRowView object provides access to the underlying DataRow object in a DataTable.. When you examine and edit the contents of a DataRowView, you are actually working with the underlyi

Trang 1

The DataRowView Class

Rows in a DataView object are stored as objects of the DataRowView class A

DataRowView object provides access to the underlying DataRow object in a DataTable When you examine and edit the contents of a DataRowView, you are actually working with the underlying DataRow Keep this in mind when working with DataRowView objects Table 13.4 shows some of the DataRowView properties, and Table 13.5 shows some of the DataRowView methods

Table 13.4: DataRowView PROPERTIES

PROPERTY TYPE DESCRIPTION

(and therefore the underlying DataRow) is in edit mode

has just been added

the DataTable

RowVersion DataRowVersion Gets the DataRowVersion of the underlying DataRow

Members of the System.Data.DataRowVersion enumeration are

• Current, which indicates the DataRow contains the current values

• Default, which indicates the DataRow contains

the default values

• Original, which indicates the DataRow contains

the original values

• Proposed, which indicates the DataRow contains

proposed values

Table 13.5: DataRowView METHODS

METHOD RETURN

TYPE

DESCRIPTION

and therefore begins the editing of the underlying DataRow in your DataTable You then edit this DataRow through the DataRowView

Trang 2

Table 13.5: DataRowView METHODS

METHOD RETURN

TYPE

DESCRIPTION

and therefore cancels editing of the underlying DataRow

CreateChildView() DataView Overloaded Returns a DataView for a child DataTable,

if present

deletion of the underlying DataRow isn't committed in the DataTable until you call the AcceptChanges() method of your DataTable You can undo the deletion by calling the RejectChanges() method of your DataTable, which also undoes any uncommitted additions or

modifications

Ngày đăng: 26/01/2014, 07:20

TỪ KHÓA LIÊN QUAN