asp.net.ph

DataRowView.RowVersion Property

System.Data Namespace   DataRowView Class


Returns the current version description of the DataRow.

Syntax


Script [ DataRowVersion variable = ] DataRowView.RowVersion

Property Value


variable One of the DataRowVersion values. Possible values for the RowVersion property are: Default, Original, Current, and Proposed.

The property is read only with no default value.

Remarks

For more details, see DataRowVersion.

Example

The following example uses the RowVersion property to determine the state of a row in the DataRowView.

private void ShowModifiedCurrentRows ( ) {
   DataView dv = ( DataView ) myGrid.DataSource;
   // set the filter to display only those rows that were modified.
   dv.RowStateFilter = DataViewRowState.ModifiedCurrent;
   // change the value of the CompanyName column for each modified row.

   foreach ( DataRowView drv in dv ) {
      Response.Write ( drv );
   }
}
  C# VB

See Also

DataRowView Members   AcceptChanges   BeginEdit   DataRowVersion   EndEdit Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph