ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / DataGridColumn Class / Width Property

In This Topic
    Width Property
    In This Topic
    Gets or sets the width of this column.
    Syntax
    'Declaration
     
    
    Public Property Width As DataGridLength
    public DataGridLength Width {get; set;}
    Remarks

    DataGridLength supports four different modes

    Type Description
    Pixel The width of the column will be the same as the amount of pixels specified.
    Auto The width of the column will be determined by the content of the cells in the columns.
    Star The viewport space will be divided among the Star and AutoStar columns.
    AutoStar Each column is assured to have enough space to show its content and when extra space is available it is divided among the Star and AutoStar columns.

    Notice MinWidth and MaxWidth has precedence over this property, that mean that if you set Width=100 and MinWidth=110 the actual value will be 110.

    See Also