Infragistics(R) NetAdvantage(R) Windows Forms
DeleteSelectedRows(Boolean) Method
See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGrid Class > DeleteSelectedRows Method : DeleteSelectedRows(Boolean) Method

displayPrompt
Specifies whether to display the delete confirmation prompt.
Deletes all rows that are selected.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DeleteSelectedRows( _
   ByVal displayPrompt As Boolean _
) 
C# 
public void DeleteSelectedRows( 
   bool displayPrompt
)

Parameters

displayPrompt
Specifies whether to display the delete confirmation prompt.

Remarks

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.

See Also