我的网络不太好,上传不了demo,给你贴代码吧,简单的
from.aspx
<body>
<form id="form1" runat="server">
<div>
<FarPoint:FpSpread ID="FpSpreadFrom" runat="server" BorderColor="#A0A0A0" BorderStyle="Solid" BorderWidth="1px" Height="200" Width="400">
<CommandBar BackColor="#F6F6F6" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight" ButtonShadowColor="ControlDark"></CommandBar>
<Sheets>
<FarPoint:SheetView SheetName="Sheet1"></FarPoint:SheetView>
</Sheets>
</FarPoint:FpSpread>
<asp:Button ID="SubMit" runat="server" Text="SubM" />
</div>
</form>
</body>
from.aspx.vb
Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles SubMit.Click
FpSpreadFrom.ActiveSheetView.Cells(0, 0).Value = 222
End Sub
|