ComponentOne True DBGrid for WinForms
Customizing the Grid's Appearance / Captions, Headers, and Footers
In This Topic
    Captions, Headers, and Footers
    In This Topic

    Affix a title to a grid, column, or split by setting the Caption property of the appropriate object. For example, the following code sets captions on a grid, column, and split:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1TrueDBGrid1.Caption = "Grid Caption"
    Me.C1TrueDBGrid1.Columns(0).Caption = "Column 0 Caption"
    Me.C1TrueDBGrid1.Splits(0).Caption = "Split 0 Caption"
    

    To write code in C#

    C#
    Copy Code
    this.c1TrueDBGrid1.Caption = "Grid Caption";
    this.c1TrueDBGrid1.Columns.[0].Caption = "Column 0 Caption";
    this.c1TrueDBGrid1.Splits[0].Caption = "Split 0 Caption";
    
    See Also