Version

Disabling Delete Row Confirmation

Topic Overview

Purpose

This topic provides an overview on disabling the confirmation dialog when deleting a row.

Disabling Delete Row Confirmation Feature

Overview

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

Related Content

Topics

The following topic provides additional information related to this topic.

Topic Purpose

This section provides direct links to related topics.