Object Reference > True DBGrid Properties > Name Property (Style) |
This property returns the name of a Style object.
style.Name
Read-only at run time. Read/Write at design time.
The Name property is set at design time in the Style Factory property page when a style is first created. Styles cannot be renamed, even at design time.
When a TDBGrid control is first created, its Styles collection contains ten built-in styles named Normal, Heading, Footing, Selected, Caption, HighlightRow, EvenRow, OddRow, RecordSelector, and FilterBar.
Note
For an independent style object, the Name property always returns an empty string. An independent style object is not a member of the Styles collection, but is a standalone object created in code with a Dim or Set statement using the New keyword.