Version

Modify/Suppress the Row Deletion Message Box

If you would like to create your own message box when rows are deleted or merely wish to suppress the default message box from appearing, it only takes one line of code.

Place this code within the BeforeRowsDeleted event of the WinGrid™ control. This event passes in specific BeforeRowsDeletedEventArgs .

In Visual Basic:

Private Sub UltraGrid1_BeforeRowsDeleted(ByVal sender As Object, _
  ByVal e As Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs) _
  Handles UltraGrid1.BeforeRowsDeleted
	e.DisplayPromptMsg = False
End Sub

In C#:

private void ultraGrid1_BeforeRowsDeleted(object sender,
  Infragistics.Win.UltraWinGrid.BeforeRowsDeletedEventArgs e)
{
	e.DisplayPromptMsg = false;
}