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






Determines whether cells value of NewRow should be reinitialized when an error occurred during AddRow server event.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<DescriptionAttribute("Gets or sets the custom filtering string.")>
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
Public Property ResetNewRowValuesOnError As Boolean
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Boolean
 
instance.ResetNewRowValuesOnError = value
 
value = instance.ResetNewRowValuesOnError
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the custom filtering string.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public bool ResetNewRowValuesOnError {get; set;}
Delphi 
public read-write property ResetNewRowValuesOnError: Boolean; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
DescriptionAttribute("Gets or sets the custom filtering string.")
DefaultValueAttribute()
NotifyParentPropertyAttribute()
public function get,set ResetNewRowValuesOnError : boolean
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the custom filtering string.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public: __property bool get_ResetNewRowValuesOnError();
public: __property void set_ResetNewRowValuesOnError( 
   bool value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the custom filtering string.")]
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
public:
property bool ResetNewRowValuesOnError {
   bool get();
   void set (    bool value);
}

Remarks

This setting is only taken affect when the new row editing was ended in normal context, such as by pressing shift+enter or tabbing until the last editable cell. This behavior doesn't affect when the new row editing was ended because other row or cell is clicked. You should use OnRowValidate client side event to implement validation and return false to prevent ending edit mode. When the validation failed (by returning false), the new row and the cell which cause the validation to fail will get focused automatically.

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: Maintain the new row's value when there is error during adding action

©2012 Intersoft Solutions Corp. All Rights Reserved.