Scheduler for WPF | ComponentOne
C1.WPF.Schedule Namespace / AutoDistributionGrid Class / FitCellsOfWidth Property

In This Topic
    FitCellsOfWidth Property (AutoDistributionGrid)
    In This Topic
    Allows the forcing of the AutoDistributionGrid to generate cells of the specified width, where a number of columns will be automatically adjusted so as to fully fit a maximum number of cells in a current grid width. The default value is System.Double.NaN. This is a dependency property.
    Syntax
    'Declaration
     
    
    Public Property FitCellsOfWidth As Double
    public double FitCellsOfWidth {get; set;}
    Remarks

    Setting AutoDistributionGrid.FitCellsOfWidth to non Double.NaN value directs grid to automatically create as many columns of the width specified as the property value that can fully fit in the grid's width (but at least one). When grid width is being changed the number of columns is adjusted automatically.

    See Also