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






Gets or sets the filter edit type for this column.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<DefaultValueAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DescriptionAttribute("Gets or sets the filter edit type for this column.")>
Public Property FilterEditType As FilterEditType
Visual Basic (Usage)Copy Code
Dim instance As WebGridColumn
Dim value As FilterEditType
 
instance.FilterEditType = value
 
value = instance.FilterEditType
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets the filter edit type for this column.")]
public FilterEditType FilterEditType {get; set;}
Delphi 
public read-write property FilterEditType: FilterEditType; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
DefaultValueAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DescriptionAttribute("Gets or sets the filter edit type for this column.")
public function get,set FilterEditType : FilterEditType
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets the filter edit type for this column.")]
public: __property FilterEditType get_FilterEditType();
public: __property void set_FilterEditType( 
   FilterEditType value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[DefaultValueAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DescriptionAttribute("Gets or sets the filter edit type for this column.")]
public:
property FilterEditType FilterEditType {
   FilterEditType get();
   void set (    FilterEditType value);
}

Example

 

This example below shows how to configure a filter column as DropDownList filter type.
C#Copy Code
private void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
        if(!IsPostBack)
        {
                WebGrid1.RetrieveStructure();           
        }

        WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").FilterEditType = FilterEditType.DropdownList;
        WebValueList vl = WebGrid1.RootTable.Columns.GetNamedItem("CategoryID").ValueList;
        if(!vl.IsDataCached())
        {
                DataTable dt = new DataTable("Categories");
                oleDbDataAdapter2.Fill(dt);
                vl.DataSource = dt;
        
        }
        vl.DataTextField = "CategoryName";
        vl.DataValueField = "CategoryID";
        
}

Remarks

There are numerous type of FilterEditType, such as: SameAsEditType, TextBox, DropDownList, NoEdit, CheckBox, CalendarCombo.

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.