'Declaration Public Property FormatString As String
'Usage Dim instance As DateTimeCellType.EditModeSettings Dim value As String instance.FormatString = value value = instance.FormatString
public string FormatString {get; set;}
'Declaration Public Property FormatString As String
'Usage Dim instance As DateTimeCellType.EditModeSettings Dim value As String instance.FormatString = value value = instance.FormatString
public string FormatString {get; set;}
protected void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack) return; FarPoint.Web.Spread.DateTimeCellType dct = new FarPoint.Web.Spread.DateTimeCellType(); dct.DateTimeFormat = new System.Globalization.DateTimeFormatInfo(); dct.FormatString = "yyyy/MM/dd"; dct.EditMode.DateTimeFormat = new System.Globalization.DateTimeFormatInfo(); dct.EditMode.FormatString = "yyyy.MM.dd"; FpSpread1.Sheets[0].Columns[1].CellType = dct; }
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If (IsPostBack) Then Return End If Dim dct As New FarPoint.Web.Spread.DateTimeCellType() dct.DateTimeFormat = New System.Globalization.DateTimeFormatInfo() dct.FormatString = "yyyy/MM/dd" dct.EditMode.DateTimeFormat = New System.Globalization.DateTimeFormatInfo() dct.EditMode.FormatString = "yyyy.MM.dd" FpSpread1.Sheets(0).Columns(1).CellType = dct End Sub