Intersoft WebGrid Documentation
LoadLayout Method
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : LoadLayout Method






Restore WebGrid's LayoutSettings by loading it from a saved Layout file.

Restore WebGrid's layout settings and visual styles by loading it from a saved Layout file.

Overload List

OverloadDescription
LoadLayout(String)

Restore WebGrid's LayoutSettings by loading it from a saved Layout file.

 
LoadLayout(Stream)Restore WebGrid's LayoutSettings from stream.  
LoadLayout(LayoutInfo) (Inherited from ISNet.WebUI.ISNetControl)

Example

The code below loads a layout file named Silver.WGL and immediately applies it. The AllowSorting is set to Yes to enable columns sorting.
C#Copy Code
WebGrid1.LoadLayout( Server.MapPath("Silver.WGL") );
WebGrid1.LayoutSettings.AllowSorting = ISNet.WebUI.WebGrid.Sorting.Yes;

Remarks

Users can save appearance, look and feel, and behavior settings to WebGrid Layout File at design time, then apply it to other WebGrid's instance dynamically at runtime using LoadLayout method.

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.