Spread ASP.NET 15
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / ClientAutoSize Property

In This Topic
    ClientAutoSize Property
    In This Topic
    Gets or sets whether to resize the spread automatically.
    Public Property ClientAutoSize As Boolean
    Dim instance As FpSpread
    Dim value As Boolean
    instance.ClientAutoSize = value
    value = instance.ClientAutoSize
    public bool ClientAutoSize {get; set;}
    ClientAutoSize autosizes the rows based on the page size instead of the rowcount. Frozen columns and rows are ignored when scrolling if ClientAutoSize is true.
    This example sets the ClientAutoSize property.
    FpSpread1.Sheets[0].ColumnCount = 6;
    FpSpread1.Sheets[0].RowCount = 12;
    FpSpread1.ClientAutoSize = true;
    FpSpread1.Sheets[0].PageSize = 12;
    FpSpread1.Sheets(0).ColumnCount = 6
    FpSpread1.Sheets(0).RowCount = 12
    FpSpread1.ClientAutoSize = true
    FpSpread1.Sheets(0).PageSize = 12
    See Also