ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.SaveLayout Method (String, Boolean)

Saves the grid's layout.

[Visual Basic]

Overloads Public Sub SaveLayout( _

ByVal filename As String, _

ByVal withDefaultValues As Boolean _

)

[C#]

public void SaveLayout(

string filename,

bool withDefaultValues

);

[Delphi]

public procedure SaveLayout(

filename: String;

withDefaultValues: Boolean

); overload;

Parameters

filename

File to contain the grid layout.

withDefaultValues

Specifies whether default values are serialized.

Example

The following code provides an example of the SaveLayout method saving all properties settings:

·      Visual Basic

       Me.C1TrueDBGrid1.SaveLayout("c:\temp\ComposerLayout.xml", True)

·      C#

       this.c1TrueDBGrid1.SaveLayout(@"c:\temp\ComposerLayout.xml", true);

·      Delphi

       Self.C1TrueDBGrid1.SaveLayout('c:\temp\ComposerLayout.xml', True);

See Also

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


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