asp.net.ph

DataView.AllowDelete Property

System.Data Namespace   DataView Class


Sets or retrieves a value indicating whether deletes are allowed.

Syntax


Script DataView.AllowDelete [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true, if deletes are allowed; otherwise, false.

Example

The following example checks the AllowDelete property before deleting a DataRow from a DataView.

private void CheckAllowDelete ( DataRow rowToDelete ) {
   DataView dv = new DataView ( ds.Tables [ "Suppliers" ] );
   if ( dv.AllowDelete ) {
      rowToDelete.Delete ( );
   }
}
  C# VB

See Also

DataView Members   AllowEdit   AllowNew 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