如果是整个sheet 不需要边框,设置
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="#A0A0A0" BorderStyle="None" BorderWidth="1px" Height="700" Width="700">
如果是单元不需要边框
- FpSpread1.Sheets[0].Cells[2, 3].Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.None,Color.Red);
- FpSpread1.Sheets[0].Cells[3, 3].Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.None, Color.Red);
- FpSpread1.Sheets[0].Cells[3, 2].Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.None, Color.Red);
- FpSpread1.Sheets[0].Cells[2, 2].Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.None, Color.Red);
复制代码
有一点需要注意,如果你只设置一个单元格不要边框,可是旁边单元格有边框的话是看不出效果的 |