Intersoft WebGrid Documentation
FormatConditions Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridTable Class : FormatConditions Property






Gets or sets the condition on WebGrid and apply the styles automatically when the condition is met.

Syntax

Visual Basic (Declaration) 
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<BrowsableAttribute(False)>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<DescriptionAttribute()>
Public ReadOnly Property FormatConditions As WebGridFormatConditionCollection
Visual Basic (Usage)Copy Code
Dim instance As WebGridTable
Dim value As WebGridFormatConditionCollection
 
value = instance.FormatConditions
C# 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public WebGridFormatConditionCollection FormatConditions {get;}
Delphi 
public read-only property FormatConditions: WebGridFormatConditionCollection; 
JScript 
PersistenceModeAttribute(PersistenceMode.InnerProperty)
BrowsableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
DescriptionAttribute()
public function get FormatConditions : WebGridFormatConditionCollection
Managed Extensions for C++ 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public: __property WebGridFormatConditionCollection* get_FormatConditions();
C++/CLI 
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[DescriptionAttribute()]
public:
property WebGridFormatConditionCollection^ FormatConditions {
   WebGridFormatConditionCollection^ get();
}

Remarks

FormatCondition is a feature that designed to allow users easily define the condition in Designer and apply the styles automatically when the condition is met. There are numerous methods you can use to define the criteria, target object, and more.

There are two condition matching mode, the first is a simple mode where users specify a ColumnMember, Operator and ConditionText to match and the second is CustomConditionText where users can specify a filtering against the datamember available in your datasource. The filtering used in CustomConditionText comforts to the ADO.NET expression specification and therefore allow you to match any complex conditions.

FormatConditions is built on top of automatic style merging architecture, so if there are more than one conditions that matched in a single target-object, the FormatStyle will all be applied having the style priority following the order of the format condition. For more information you can read Conditional 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.