ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.FlatStyle Property

Gets or sets the general appearance of 3D elements for the entire grid.

[Visual Basic]

Public Property FlatStyle As FlatModeEnum

[C#]

public FlatModeEnum FlatStyle {get;set;}

[Delphi]

public property FlatStyle: FlatModeEnum read get_FlatStyle write set_FlatStyle;

Example

The following code sets the FlatStyle property to Popup, so when the user drags the cursor over a column heading or recordselector, they become three-dimensional and appear to pop up:

·      Visual Basic

       Me.C1TrueDBGrid1.FlatStyle = C1.Win.C1TrueDBGrid.FlatModeEnum.Popup

·      C#

       this.c1TrueDBGrid1.FlatStyle = C1.Win.C1TrueDBGrid.FlatModeEnum.Popup;

·      Delphi

       Self.C1TrueDBGrid1.FlatStyle := C1.Win.C1TrueDBGrid.FlatModeEnum.Popup;

For an example of each of the three-dimensional styles, see Three-Dimensional vs. Flat Display.

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


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