ComponentOne True DBGrid for WinForms
Object Model / C1DataColumnCollection Class / C1DataColumn Object
In This Topic
    C1DataColumn Object
    In This Topic

    Each column within a C1TrueDBGrid or C1TrueDBDropDown control is represented by two column objects, one global and one split-specific. All of the properties related to data access and formatting are contained under the C1DataColumn object. The properties of the C1DataColumn object are global in scope; changing a C1DataColumn property changes that value for all columns, even across splits. The C1DataColumn object can be accessed as follows:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1TrueDBGrid1.Columns(0).Caption = "Region"
    

    To write code in C#

    C#
    Copy Code
    this.c1TrueDBGrid1.Columns[0].Caption = "Region";
    
    See Also