回复 2楼sam的帖子
sam 你好
看你最近几个功能都要求不能刷新页面,如果是这样的话你可以考虑将Spread方法UpdatePanel中,这样就不会刷新整个页面
- <body>
- <form id="form1" runat="server">
- <asp:ScriptManager ID="ScriptManager1" runat="server">
- </asp:ScriptManager>
- <div>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /><br />
- <FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black" BorderStyle="Solid"
- BorderWidth="1px" Height="200" Width="400"
- onbuttoncommand="FpSpread1_ButtonCommand">
- <CommandBar BackColor="Control" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight"
- ButtonShadowColor="ControlDark">
- </CommandBar>
- <Sheets>
- <FarPoint:SheetView SheetName="Sheet1">
- </FarPoint:SheetView>
- </Sheets>
- </FarPoint:FpSpread>
- </ContentTemplate>
- </asp:UpdatePanel>
- </div>
- </form>
- </body>
复制代码
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.ActiveSheetView.ColumnFooter.Visible = true;
- this.FpSpread1.ActiveSheetView.ColumnFooter.Cells[0, 0].Text = "AAAA";
- }
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- this.FpSpread1.ActiveSheetView.ColumnFooter.Cells[0, 0].Text = "BBBB";
- }
复制代码
6831_ColumnFooter.zip
(7.86 KB, 下载次数: 134)
|