Spread for ASP.NET 10 Product Documentation > Developer's Guide > Customizing with Cell Types > Working with Editable Cell Types > Setting a General Cell |
Users can type text or numbers in a general cell type. The general cell type can also be used as a base from which to inherit generic cell type information.
The general cell will format the values the user types into strings, numbers, or dates. The text cell formats user typed values as strings.
For details on the properties and methods for this cell type, refer to the GeneralCellType class.
This example sets a cell to be a general cell.
C# |
Copy Code
|
---|---|
FarPoint.Web.Spread.GeneralCellType gencell = new FarPoint.Web.Spread.GeneralCellType();
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = gencell;
|
VB |
Copy Code
|
---|---|
Dim gencell As New FarPoint.Web.Spread.GeneralCellType() FpSpread1.ActiveSheetView.Cells(1, 1).CellType = gencell |