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 | Description |
---|---|
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) |
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; |
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.
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