protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
return;
this.FpSpread1.Sheets[0].ActiveColumn= 2;
this.FpSpread1.Sheets[0].ActiveRow = 1 ;
string[] cbstr;
string[] strval;
cbstr = new String[] { "One", "Two", "Three" };
strval = new String[] { "1", "2", "3" };
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
cb.Items = cbstr;
cb.ShowButton = true;
cb.AutoPostBack = true;
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
FpSpread1.ActiveSheetView.DataModel.SetValue(0, 0, 1);
}
protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
}
这是上次楼主给的通过combox选择后出发后台事件的代码,现有一问题,请问如何在FpSpread1_ButtonCommand中获取,刚才是哪个cell中的combox触发的该事件? |
|