Spread ASP.NET 16
Spread for ASP.NET 16 Product Documentation / Developer's Guide / Using Touch Support with the Component / Using Touch Support / Using Touch Support when Resizing Columns or Rows
In This Topic
    Using Touch Support when Resizing Columns or Rows
    In This Topic

    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.

    Column Resize Handle

    Spread displays the column and row resize handles if the AllowHeaderResize property is true. The following image displays both handles.

    Row and Column Resize Handles

    Row resizing is disabled if the RowTemplateLayoutMode is used.

    Using Code

    Set the AllowHeaderResize and Resizable properties.

    Example

    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
    
    See Also