找回密码
 立即注册

QQ登录

只需一步,快速开始

iceman

社区贡献组

270

主题

1万

帖子

1万

积分

社区贡献组

积分
19311

活字格认证微信认证勋章元老葡萄

iceman
社区贡献组   /  发表于:2012-3-15 09:35  /   查看:8271  /  回复:4
Spread 可以设置图形类单元格显示模式,下面我们就通过 ComboBoxCellType 展示仅在活跃行显示ComboBoxCellType 单元格类型。
效果截图:

png

png

参考代码:
  1.          FarPoint.Win.Spread.CellType.ComboBoxCellType comboBoxType = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
  2.             string[] items = new string[] { "a","b","c","d","e"};
  3.             comboBoxType.Items = items;

  4.             this.fpSpread1.Sheets[0].Columns[0].CellType = comboBoxType;
  5.             this.fpSpread1.ButtonDrawMode = FarPoint.Win.Spread.ButtonDrawModes.CurrentRow;
复制代码
Demo 下载:
测试环境:VS 2010 && Spread for WinForm 5.0
test.zip (34.82 KB, 下载次数: 1562)

4 个回复

倒序浏览
xiwu
中级会员   /  发表于:2012-8-3 22:51:00
沙发
好久没有来论坛了,现在内容丰富多了,
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2012-8-16 11:18:00
板凳
回复 2楼xiwu的帖子

这里还得感谢 xiwu 长期以来对 GCDN 论坛的支持,对葡萄城控件产品的支持,非常感谢!
回复 使用道具 举报
gdrle
初级会员   /  发表于:2015-1-9 16:38:00
地板
标记一下
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-1-12 09:44:00
5#
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部