|Visual Basic (Declaration)|
Public Overloads Sub DeleteSelectedRows( _ ByVal displayPrompt As _ )
public void DeleteSelectedRows( displayPrompt )
- Specifies whether to display the delete confirmation prompt.
Invoke this method to delete all selected rows. A particular row, regardless of whether it is selected, can be deleted by invoking its Delete method.
When one or more selected rows are deleted, the BeforeRowsDeleted event is generated, which provides an opportunity to prevent a specific row from being deleted.
When a row is deleted, it is removed from the control and its corresponding record is deleted from the data source. If the record cannot be removed from the data source, the Error event is generated.
Selected UltraGridRow objects are contained in a SelectedRows collection, which can be accessed via the Rows property of the Selected property of the control.