找回密码
 立即注册

QQ登录

只需一步,快速开始

fsr

注册会员

12

主题

26

帖子

172

积分

注册会员

积分
172

微信认证勋章

fsr
注册会员   /  发表于:2016-5-26 11:21  /   查看:3187  /  回复:1
请问一下  FarPoint.Web.Spread.RadioButtonListCellType如何被选中,比如性别分为男、女,从数据读出是男的话如何被选中了?

1 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-5-26 12:03:06
沙发
SetValue 就好了,会自动选择

  1. string[] rbstr;
  2.             string[] rbval;
  3.             rbstr = new String[] { "男", "女"};
  4.             rbval = new String[] { "0", "1"};
  5.             FarPoint.Web.Spread.RadioButtonListCellType rb = new FarPoint.Web.Spread.RadioButtonListCellType(rbstr);
  6.             rb.Values = rbval;
  7.             FpSpread1.ActiveSheetView.Cells[0, 0].CellType = rb;
  8.             FpSpread1.ActiveSheetView.SetValue(0, 0, "1");
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部