spread 知识点滴积累(1)

spread 知识点滴积累
width="100%" scrolling="no" height="20" frameborder="0" src="Sys/ContentInfo.aspx?id=234" marginheight="0" marginwidth="0" name="ifinfo" id="ifinfo">

spread 中checkbox的用法

forpoint   spreadsheet       列类别选择combo就可以了

spread的帮助文件中间搜索   CellType   property,   check   box   cells //------------------------------------------------------

是这样的,我的webform上放了一个FpSpread控件,我想把行头变成checkbox样式,我的方法是在后台代码中定义:     FarPoint.Web.Spread.CheckBoxCellType   celltype   =   new   FarPoint.Web.Spread.CheckBoxCellType();     然后将此type赋给行头:     FpSpread1.ActiveSheetView.RowHeader.Cells[0,0].CellType=celltype;     我的问题是:1.如果我想用一个Button控制当点击Button时,如果CheckBox是选中状态,则在该中显示某某字符,但我不知道这种CheckBox的标识是什么,还有他的状态为选中或没选中返回值是什么?     2.还有其他方法吗?比如我用     FpSpread1.ActiveSheetView.RowHeader.Cells[0,0].Text="<Input   id=/"nihao/"   checked   type   =/"CheckBox/"   />"     遇到的困难和刚才一样。     请问怎么解决,多谢!

FpSpread1.columnsheader.cells(0,0).text="Check   #"

//------------------------------------------------------------- 确定check所在的位置,然后直接判断FpSpread1.Sheets(0).Cells(1,6).Value是否为1,为1就是选中状态。我是这样的。

Public   Sub   SetCOLCheck(spd   As   vaSpread,   ByVal   lCol1   As   Long,   ByVal   lCol2   As   Long,   _                     Optional   ByVal   IsCenter   As   Boolean   =   True)             With   spd                     .Col   =   lCol1                     .Col2   =   lCol2                     .Row   =   -1                     .BlockMode   =   Tru

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值