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




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