FormDataSource.deleteMarked Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes all marked (selected) records from a data source.
public:
override void deleteMarked();
public override void deleteMarked ();
override this.deleteMarked : unit -> unit
Public Overrides Sub deleteMarked ()
Remarks
If no records have been selected, the FormDataSource.delete method is executed. The operation can be interrupted by pressing CTRL+BREAK. The deleteMarked method can be overridden on a form data source. Right-click the Methods node under the data source, and then select Override Method > deleteMarked.
The following example overrides the deleteMarked method to let users confirm whether they want to delete the marked records.
public void deleteMarked()
{
if (Box::yesNo("@SYS79428", DialogButton::Yes, "@SYS79319"))
super();
}