asp.net.ph

DataRowView.Row Property

System.Data Namespace   DataRowView Class


Returns the DataRow being viewed.

Syntax


Script [ DataRow variable = ] DataRowView.Row

Property Value


variable The DataRow being viewed by the DataRowView.

The property is read only with no default value.

Example

The following example uses the Row property to print the value of the third column in each modified row of a DataView.

private void ShowColumn3 ( ) {
   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.Row [ 2 ] );
   }
}
  C# VB

See Also

DataRowView Members   DataRow Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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