MESCIUS SPREAD for ASP.NET 10.0J
AutoPostBack プロパティ (IAutoPostBack)

クリックしたときにコンポーネントが自動的にポストバックするかどうかを取得または設定します。
構文
'Declaration
 
Property AutoPostBack As Boolean
bool AutoPostBack {get; set;}

プロパティ値

Boolean:自動的にポストバックする場合はTrue、それ以外の場合はFalse
解説
このプロパティは、コンポーネントがユーザーの操作に基づいてデータを自動的にサーバーにポストバックするかどうかを決定します。
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(new string[] {"One", "Two", "Three"});
cb.ShowButton = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cb;
FpSpread1.EnableClientScript = false;

private void FpSpread1EditCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e) 
{
    bool ap;
    FarPoint.Web.Spread.Editor.IEditor ed;
    ed = e.SheetView.Cells[e.CommandArgument, 0].Editor;
    if (fpEditor is FarPoint.Web.Spread.IAutoPostBack) 
    {
        ap = ((FarPoint.Web.Spread.IAutoPostBack) ed).AutoPostBack; 
        Response.Write(ap.ToString()); 
    }
}
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(New String() {"One", "Two", "Three"})
cb.ShowButton = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = cb
FpSpread1.EnableClientScript = False

Private Sub FpSpread1EditCommand(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles FpSpread1.EditCommand
    Dim ap As Boolean
    Dim ed As FarPoint.Web.Spread.Editor.IEditor
    ed = e.SheetView.Cells(e.CommandArgument, 0).Editor
    If TypeOf ed Is FarPoint.Web.Spread.IAutoPostBack Then
        ap = CType(ed, FarPoint.Web.Spread.IAutoPostBack).AutoPostBack
        Response.Write(ap.ToString())
    End If 
End Sub
参照

IAutoPostBack インタフェース
IAutoPostBack メンバ

 

 


© MESCIUS inc. All rights reserved.