Intersoft WebGrid Documentation
DefaultText Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridColumn Class : DefaultText Property






Specifies the default text of this column when new row is added.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Specifies the default text of this column when new row is added.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
Public Property DefaultText As String
Visual Basic (Usage)Copy Code
Dim instance As WebGridColumn
Dim value As String
 
instance.DefaultText = value
 
value = instance.DefaultText
C# 
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the default text of this column when new row is added.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public string DefaultText {get; set;}
Delphi 
public read-write property DefaultText: String; 
JScript 
DefaultValueAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("Specifies the default text of this column when new row is added.")
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
public function get,set DefaultText : String
Managed Extensions for C++ 
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the default text of this column when new row is added.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public: __property string* get_DefaultText();
public: __property void set_DefaultText( 
   string* value
);
C++/CLI 
[DefaultValueAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Specifies the default text of this column when new row is added.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
public:
property String^ DefaultText {
   String^ get();
   void set (    String^ value);
}

Remarks

DefaultText property is used in conjunction with column which EditType is DropDownList or WebComboNET. Since that these edit types can contain different value for its displayed Text and cell value, this property can be used to contain the displayed Text part while the DefaultValue will be used as the default cell's value. Note that you don't need to set this property for other edit types such as TextBox, as the DefaultValue property will be used.

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

©2012 Intersoft Solutions Corp. All Rights Reserved.