protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!CheckUserAccess("A"))
{
}
InitHeaders();
}
FpSpreadGV.ActiveSheetView.DefaultStyle.CellType = new FarPoint.Web.Spread.GeneralCellType() { AllowWrap = false };
FarPoint.Web.Spread.ButtonCellType btn = new FarPoint.Web.Spread.ButtonCellType("MyRed");
btn.ButtonType = FarPoint.Web.Spread.ButtonType.LinkButton;
this.FpSpreadGV.Sheets[0].Columns[3].CellType = btn;
LoadData();
}
我想通过绑定后给按钮赋值,加载后显示的Text都是相同的为什么,
根据我的理解应该 按钮显示的Text应该不一样才对,
for (int i = 0; i < FpSpreadGV.Rows.Count; i++)
{
FarPoint.Web.Spread.ButtonCellType btn = FpSpreadGV.ActiveSheetView.Columns[3].CellType as FarPoint.Web.Spread.ButtonCellType;
btn.Text = FpSpreadGV.ActiveSheetView.Cells[i, 4].Text;
} |