SetValue 就好了,会自动选择
- string[] rbstr;
- string[] rbval;
- rbstr = new String[] { "男", "女"};
- rbval = new String[] { "0", "1"};
- FarPoint.Web.Spread.RadioButtonListCellType rb = new FarPoint.Web.Spread.RadioButtonListCellType(rbstr);
- rb.Values = rbval;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = rb;
- FpSpread1.ActiveSheetView.SetValue(0, 0, "1");
复制代码 |