Spread for ASP.NET 10 Product Documentation > Developer's Guide > Using Touch Support with the Component > Using Touch Support > Using Touch Support when Resizing Columns or Rows |
You can resize columns or rows using touch gestures.
Select a column or row (tap to select), press the column or row resize handle and slide to change the width or height, and then release.
Spread displays the column and row resize handles if the AllowHeaderResize property is true. The following image displays both handles.
Row resizing is disabled if the RowTemplateLayoutMode is used.
Set the AllowHeaderResize and Resizable properties.
This example allows the user to resize headers, columns, and rows.
C# |
Copy Code
|
---|---|
FpSpread1.Sheets[0].Columns.Count = 10; FpSpread1.Sheets[0].Rows.Count = 20; FpSpread1.AllowHeaderResize = true; FpSpread1.ActiveSheetView.Columns[0, 5].Resizable = true; FpSpread1.ActiveSheetView.Rows[0, 10].Resizable = true; |
VB |
Copy Code
|
---|---|
FpSpread1.Sheets(0).Columns.Count = 10 FpSpread1.Sheets(0).Rows.Count = 20 FpSpread1.AllowHeaderResize = True FpSpread1.ActiveSheetView.Columns(0, 5).Resizable = True FpSpread1.ActiveSheetView.Rows(0, 10).Resizable = True |