ultraGrid1.DisplayLayout.ShowDeleteRowsPrompt = false;
This topic provides an overview on disabling the confirmation dialog when deleting a row.
This feature provides the developer with an additional option for disabling the confirmation dialog when the user attempts to delete a row.
By default, when selecting and deleting a row from the WinGrid , a confirmation dialog box appears prompting the user to confirm the deletion before actually deleting the row. There are 2 ways of disabling the confirmation dialog. Either set the DisplayPromptMsg to False on the BeforeRowsDeleted event, or change the control’s Boolean property ShowDeleteRowsPrompt from its default setting, True, to False.
Disabling the confirmation dialog.
In C#:
ultraGrid1.DisplayLayout.ShowDeleteRowsPrompt = false;
In Visual Basic:
ultraGrid1.DisplayLayout.ShowDeleteRowsPrompt = False
Disable the confirmation dialog by overriding the event argument.
In C#:
private void ultraGrid1_BeforeRowsDeleted(object sender, BeforeRowsDeletedEventArgs e)
{
e.DisplayPromptMsg = false;
}
In Visual Basic:
Private Sub ultraGrid1_BeforeRowsDeleted(sender As Object, e As BeforeRowsDeletedEventArgs)
e.DisplayPromptMsg = False
End Sub
The following topic provides additional information related to this topic.