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






Gets or sets the string format to use when rendering values.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<DefaultValueAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<DescriptionAttribute("Gets or sets the format to use when rendering values.")>
<NotifyParentPropertyAttribute(True)>
Public Property DataFormatString As String
Visual Basic (Usage)Copy Code
Dim instance As WebGridColumn
Dim value As String
 
instance.DataFormatString = value
 
value = instance.DataFormatString
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the format to use when rendering values.")]
[NotifyParentPropertyAttribute(true)]
public string DataFormatString {get; set;}
Delphi 
public read-write property DataFormatString: String; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
DefaultValueAttribute()
ISNet.Serialization.BinarySerializableAttribute()
DescriptionAttribute("Gets or sets the format to use when rendering values.")
NotifyParentPropertyAttribute()
public function get,set DataFormatString : String
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the format to use when rendering values.")]
[NotifyParentPropertyAttribute(true)]
public: __property string* get_DataFormatString();
public: __property void set_DataFormatString( 
   string* value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("Gets or sets the format to use when rendering values.")]
[NotifyParentPropertyAttribute(true)]
public:
property String^ DataFormatString {
   String^ get();
   void set (    String^ value);
}

Remarks

You can set any DataFormatString that is available to .NET such as "c" for currency, "d" for short date and even custom pattern such as "MM/dd/yyy" and so on. When the edit mode is activated, it will check the assigned DataFormatString and applies it to the built-in validation core function for data checking and masking. To learn more and give you better illustration you can read Data Formatting.

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.