Spread for ASP.NET 11 Product Documentation
ClientAutoSize Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : ClientAutoSize Property
Gets or sets whether to resize the spread automatically.
Syntax
'Declaration
 
Public Property ClientAutoSize As Boolean
'Usage
 
Dim instance As FpSpread
Dim value As Boolean
 
instance.ClientAutoSize = value
 
value = instance.ClientAutoSize
public bool ClientAutoSize {get; set;}
Remarks
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.
Example
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

Reference

FpSpread Class
FpSpread Members