True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.5.2 Assembly / C1.Win.C1TrueDBGrid.BaseGrid Namespace / Frame Class / Glyphs Property
Example

In This Topic
    Glyphs Property (Frame)
    In This Topic
    Gets the collection of control glyphs (images used to show sorting, check boxes, etc).
    Syntax
    'Declaration
     
    Public ReadOnly Property Glyphs As GridGlyphs
    public GridGlyphs Glyphs {get;}
    Remarks

    The Glyphs property returns a C1.Win.C1TrueDBGrid.GridGlyphs collection with an indexer of type C1.Win.C1TrueDBGrid.GlyphType. This collection allows you to get or set the images used to indicate column sorting, collapsed and expanded outline groups, check boxes, etc.

    Note: Setting a glyph to null restores the default (built-in) image. If you want to make a glyph invisible, set it to a small blank image instead.

    Example
    For example, the code below causes the grid to use custom images to display the column sorting order (instead of the built-in hollow triangles):
    c1trueDBGrid.Glyphs[GlyphType.SortAscending] = imgAscending;
    c1trueDBGrid.Glyphs[GlyphType.SortDescending] = imgDescending;
    See Also