Intersoft WebGrid Documentation
PromptBeforeDelete Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > LayoutSet Class : PromptBeforeDelete Property






Specifies whether or not to display a confirmation box before deleting a row.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Specifies whether or not to display a confirmation box before deleting a row.")>
<DefaultValueAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property PromptBeforeDelete As Boolean
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Boolean
 
instance.PromptBeforeDelete = value
 
value = instance.PromptBeforeDelete
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to display a confirmation box before deleting a row.")]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public bool PromptBeforeDelete {get; set;}
Delphi 
public read-write property PromptBeforeDelete: Boolean; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("Specifies whether or not to display a confirmation box before deleting a row.")
DefaultValueAttribute()
ISNet.Serialization.BinarySerializableAttribute()
public function get,set PromptBeforeDelete : boolean
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to display a confirmation box before deleting a row.")]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property bool get_PromptBeforeDelete();
public: __property void set_PromptBeforeDelete( 
   bool value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies whether or not to display a confirmation box before deleting a row.")]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property bool PromptBeforeDelete {
   bool get();
   void set (    bool value);
}

Remarks

If you set this property to True, a confirmation box will appear before you delete the row.

In version 5.0, PromptBeforeDelete property works when user tries to delete a row from context menu. In previous version, PromptBeforeDelete only works when user press Delete key to delete a row.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

LayoutSet Class
LayoutSet Members

Tasks

How-to: Display an alert message before adding, deleting or updating a row

Concepts

Rich User Interface Elements

©2012 Intersoft Solutions Corp. All Rights Reserved.