public void CreateGeneralCell1()
{
GeneralCellType generalCellType1 = new GeneralCellType();
//ALT+ENTER will insert a new line in editing element.
generalCellType1.AcceptsReturn = true;
//The input text will be formatted automatically. For example, if you input '1', that will be formatted to number 1 automatically.
generalCellType1.FormatString = "General";
//The input text will NOT be formatted automatically, that always treated as text.
//generalCellType.FormatString = null;
this._gcSpreadGrid1[0, 0].CellType = generalCellType1;
}
Public Sub CreateGeneralCell1()
Dim generalCellType1 As New GeneralCellType()
'ALT+ENTER will insert a new line in editing element.
generalCellType1.AcceptsReturn = True
'The input text will be formatted automatically. For example, if you input '1', that will be formatted to number 1 automatically.
generalCellType1.FormatString = "General"
'The input text will NOT be formatted automatically, that always treated as text.
'generalCellType.FormatString = null;
Me._gcSpreadGrid1(0, 0).CellType = generalCellType1
End Sub