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






LayoutSettings is the central object that contain all the behaviors and styles for the whole WebGrid control.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Appearance")>
<TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>
<NotifyParentPropertyAttribute(True)>
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
<ISNet.Serialization.BinarySerializableAttribute()>
<ISNet.Serialization.XmlSerializableAttribute(XmlSerializationType.ClientAndLayout)>
<DescriptionAttribute()>
<DefaultValueAttribute()>
Public Property LayoutSettings As LayoutSet
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim value As LayoutSet
 
instance.LayoutSettings = value
 
value = instance.LayoutSettings
C# 
[CategoryAttribute("Appearance")]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(XmlSerializationType.ClientAndLayout)]
[DescriptionAttribute()]
[DefaultValueAttribute()]
public LayoutSet LayoutSettings {get; set;}
Delphi 
public read-write property LayoutSettings: LayoutSet; 
JScript 
CategoryAttribute("Appearance")
TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
NotifyParentPropertyAttribute()
PersistenceModeAttribute(PersistenceMode.InnerProperty)
ISNet.Serialization.BinarySerializableAttribute()
ISNet.Serialization.XmlSerializableAttribute(XmlSerializationType.ClientAndLayout)
DescriptionAttribute()
DefaultValueAttribute()
public function get,set LayoutSettings : LayoutSet
Managed Extensions for C++ 
[CategoryAttribute("Appearance")]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(XmlSerializationType.ClientAndLayout)]
[DescriptionAttribute()]
[DefaultValueAttribute()]
public: __property LayoutSet* get_LayoutSettings();
public: __property void set_LayoutSettings( 
   LayoutSet* value
);
C++/CLI 
[CategoryAttribute("Appearance")]
[TypeConverterAttribute("System.ComponentModel.ExpandableObjectConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[NotifyParentPropertyAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[ISNet.Serialization.BinarySerializableAttribute()]
[ISNet.Serialization.XmlSerializableAttribute(XmlSerializationType.ClientAndLayout)]
[DescriptionAttribute()]
[DefaultValueAttribute()]
public:
property LayoutSet^ LayoutSettings {
   LayoutSet^ get();
   void set (    LayoutSet^ value);
}

Example

C#Copy Code
LayoutSettings.AllowSorting = "Yes"

Remarks

All Intersoft's component provides a common, centralized object called LayoutSettings. It contains many features that allow you to fully customize each part of the control's look and feel directly at design-time.

The LayoutSettings object can be saved in a file by using SaveLayout method. You can later restore back the LayoutSettings by using LoadLayout method. You can also save your LayoutSettings that is commonly used and apply it to all WebGrid object in either design-time or runtime.

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

Reference

WebGrid Class
WebGrid Members

Tasks

How-to: Control WebGrid's styles using external CSS definition

©2012 Intersoft Solutions Corp. All Rights Reserved.