ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.LoadLayout Method (Stream)

Loads a saved layout from the given stream.

[Visual Basic]

Overloads Public Sub LoadLayout( _

ByVal stream As Stream _

)

[C#]

public void LoadLayout(

Stream stream

);

[Delphi]

public procedure LoadLayout(

stream: Stream

); overload;

Parameters

stream

The Stream containing a saved layout.

Example

The following code loads a saved layout from a given stream:

·      Visual Basic

       Dim stm As New System.IO.FileStream("c:\temp\composers.xml", System.IO.FileMode.Open, System.IO.FileAccess.Read)

       Me.C1TrueDBGrid1.LoadLayout(stm)

·      C#

       System.IO.FileStream stm = new System.IO.FileStream(@"c:\temp\composers.xml", System.IO.FileMode.Open, System.IO.FileAccess.Read);

       this.c1TrueDBGrid1.SaveLayout(stm);

·      Delphi

       var stm : System.IO.FileStream;

       stm := System.IO.FileStream.Create('c:\temp\composers.xml', System.IO.FileMode.Open, System.IO.FileAccess.Read);

       Self.C1TrueDBGrid1.SaveLayout(stm);

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.LoadLayout Overload List


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.