April 2002
Intermediate to advanced
416 pages
11h 50m
English
The DataRowView object is relatively simple. It is returned by the DataView object’s Item method and represents a single row in a DataTable.
The following sections describe the DataRowView’s most interesting properties and methods.
The Item method gets or sets the value of the row’s indicated field. The following code shows two ways to set the LastName field’s value, assuming the LastName field is the row’s first field.
data_row_view.Item("LastName") = "Stephens"
data_row_view.Item(0) = "Stephens" The Row method returns the underlying DataRow attached to the DataRowView. You can use this property to perform actions on the DataRow that you cannot do with the DataRowView object. For example, you can set and clear errors ...
Read now
Unlock full access