You can remove one or more columns or rows from a sheet. You can use the methods in the SheetView class.
For more details refer to the SheetView.RemoveRows method or SheetView.RemoveColumns method.
If you simply want to hide the row or column from the end user, but not remove it from the sheet, refer to Showing or Hiding a Row or Column.
This example code removes two columns before column 6.
C# |
Copy Code
|
---|---|
fpSpread1.Sheets[0].RemoveColumns(6,2); |
VB |
Copy Code
|
---|---|
fpSpread1.Sheets(0).RemoveColumns(6,2) |
This example code removes two columns before column 6.
C# |
Copy Code
|
---|---|
FarPoint.Win.Spread.SheetView Sheet0; Sheet0 = fpSpread1.Sheets[0]; Sheet0.RemoveColumns(6,2); |
VB |
Copy Code
|
---|---|
Dim Sheet0 As FarPoint.Win.Spread.SheetView Sheet0 = fpSpread1.Sheets(0) Sheet0.RemoveColumns(6, 2) |