asp.net.ph

DataView.AllowEdit Property

System.Data Namespace   DataView Class


Sets or retrieves a value indicating whether edits are allowed.

Syntax


Script DataView.AllowEdit [ = true | false ]

Property Value

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

Example

The following example invokes the AllowEdit method before editing a row in a DataView.

private void EditRow ( DataView dv ) {
   dv.AllowEdit = true;
   dv [ 0 ].BeginEdit ( );
   dv [ 0 ] [ "FirstName" ] = "Mary";
   dv [ 0 ] [ "LastName" ] = "Jones";
   dv [ 0 ].EndEdit ( );
}
  C# VB

See Also

DataView Members   AllowDelete   AllowNew   BeginEdit   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