Gets or sets a value indicating the ability to delete records from the grid.
[Visual Basic]
Public Property AllowDelete As Boolean
[C#]
public bool AllowDelete {get;set;}
[Delphi]
public property AllowDelete: Boolean read get_AllowDelete write set_AllowDelete;
Remarks
If True, the user can delete records from the data source underlying the C1TrueDBGrid control.
If False (the default), the user cannot delete records from the data source underlying the C1TrueDBGrid control.
Use the AllowDelete property to prevent the user from deleting records from the data source through interaction with the C1TrueDBGrid control.
The underlying data source may not permit deletions even if the AllowDelete property is True for the C1TrueDBGrid control. In this case, a trappable error occurs when the user tries to delete a record.
Example
The following code uses the AllowDelete property to allow the user to delete records:
Me.C1TrueDBGrid1.AllowDelete = True
· C#
this.c1TrueDBGrid1.AllowDelete = true;
· Delphi
Self.C1TrueDBGrid1.AllowDelete := True;
For an example showing how to delete a record using the AllowDelete property, see the Deleting a Record topic.
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |