ListViewUpdatedEventArgs.KeepInEditMode Property
.NET Framework (current version)
Gets or sets a value that indicates whether the ListView control should remain in edit mode after an update operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Property Value
Type: System.Booleantrue if the control should remain in edit mode after an update operation; otherwise, false. The default is false.
The following example shows how to use the KeepInEditMode property to keep a ListView control in edit mode when an exception occurs. This code example is part of a larger example provided for the ListViewUpdatedEventArgs class.
Sub ContactsListView_ItemUpdated(sender As Object, e As ListViewUpdatedEventArgs) If e.Exception IsNot Nothing Then If e.AffectedRows = 0 Then e.KeepInEditMode = True Message.Text = "An exception occurred updating the contact. " & _ "Please verify your values and try again." Else Message.Text = "An exception occurred updating the contact. " & _ "Please verify the values in the recently updated item." End If e.ExceptionHandled = True End If End Sub
.NET Framework
Available since 3.5
Available since 3.5
Show: