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






Specifies whether or not to allow users filtering data from within WebGrid.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<DescriptionAttribute("Specifies whether or not to allow users filtering data from within WebGrid.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
Public Property AllowFilter As Filter
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Filter
 
instance.AllowFilter = value
 
value = instance.AllowFilter
C# 
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether or not to allow users filtering data from within WebGrid.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
public Filter AllowFilter {get; set;}
Delphi 
public read-write property AllowFilter: Filter; 
JScript 
DefaultValueAttribute()
DescriptionAttribute("Specifies whether or not to allow users filtering data from within WebGrid.")
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
public function get,set AllowFilter : Filter
Managed Extensions for C++ 
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether or not to allow users filtering data from within WebGrid.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
public: __property Filter get_AllowFilter();
public: __property void set_AllowFilter( 
   Filter value
);
C++/CLI 
[DefaultValueAttribute()]
[DescriptionAttribute("Specifies whether or not to allow users filtering data from within WebGrid.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
public:
property Filter AllowFilter {
   Filter get();
   void set (    Filter value);
}

Example

The sample code below shows you how to set the AllowFilter property programmatically.
C#Copy Code
private void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
        e.Layout.AllowFilter = ISNet.WebUI.WebGrid.Filter.Yes;
}

Remarks

In order to Filter data, users can specify row filter based on a column by typing the filter text in Filter TextBox and press ENTER after the AllowFilter property in LayoutSettings is set to True. You can change the filter type, apply all filters, or clear all filters by clicking the Filter Image.

WebGrid.NET 5.0 Enterprise allows you to filter data based on the currently selected cell, simply by enabling the AutoFilterSuggestion.

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.