找回密码
 立即注册

QQ登录

只需一步,快速开始

shenqiumonkey

最新发帖
shenqiumonkey
银牌会员   /  发表于:2012-4-28 11:49:00
11#

回复 10# iceman 的帖子

我添加了可是还是没有,
请问还有可能是哪里出了问题么,
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-28 12:05:00
12#

回复 11# shenqiumonkey 的帖子

shenqiumonkey 你好,
默认情况下 CommandBar 是现实的,建议楼主尝试重新拖拽 Spread 到 Form。
回复 使用道具 举报
shenqiumonkey
银牌会员   /  发表于:2012-4-28 14:02:00
13#

回复 12# iceman 的帖子

再次感谢。
然后我WEB运行了,
底下的工具栏也出现了,
但是就是不能点击,
也就是说点底下的工具栏无效果,
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-28 14:03:00
14#

回复 13# shenqiumonkey 的帖子

目前无法重现该问题,请楼主发 Demo 到论坛调试。
回复 使用道具 举报
shenqiumonkey
银牌会员   /  发表于:2012-4-28 14:12:00
15#

回复 14# iceman 的帖子

哦.这个问题解决了,
除了表格样式,
有没有单张卡片的那种样式,
就像一般网站的注册页面,
可以弄成那样么.
回复 使用道具 举报
shenqiumonkey
银牌会员   /  发表于:2012-4-28 14:15:00
16#

回复 14# iceman 的帖子

麻烦楼主了,
还有隐藏左边数字栏,
与上面的字母栏.
如何在表格中添加textbox之类的空间
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-28 14:31:00
17#

回复 16# shenqiumonkey 的帖子

15# 和 16# 的问题楼主可以通过以下代码查看效果:

  1.    this.FpSpread1.Sheets[0].ColumnCount = 10;
  2.             this.FpSpread1.Sheets[0].RowCount = 10;

  3.             this.FpSpread1.Sheets[0].AllowInsert = true;

  4.             this.FpSpread1.ColumnHeader.Visible = false;
  5.             this.FpSpread1.RowHeader.Visible = false;

  6.             FarPoint.Web.Spread.TextCellType textCellType = new FarPoint.Web.Spread.TextCellType();
  7.             textCellType.ShowEditor = true;
  8.             this.FpSpread1.Sheets[0].Cells[1, 0].CellType = textCellType;
  9.             this.FpSpread1.Sheets[0].Cells[3, 0].CellType = textCellType;
  10.             this.FpSpread1.Sheets[0].Cells[5, 0].CellType = textCellType;

  11.             this.FpSpread1.Sheets[0].GridLines = GridLines.None;
复制代码
回复 使用道具 举报
shenqiumonkey
银牌会员   /  发表于:2012-4-28 14:51:00
18#

回复 17# iceman 的帖子

谢谢
非常麻烦您了,
在哪个CellType想让后面写上文字,
是什么属性, 怎么调用,
还有就是如何在下拉框里面复初始值.
麻烦您了.
如何提取在textcelltype的值,
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-28 15:06:00
19#

回复 18# shenqiumonkey 的帖子

shenqiumonkey  你好,
你太客气了,很高兴我的回答能够对你有所帮助。
1.CellType想让后面写上文字:可以使用相应 Cell 的 Text 属性进行设置。
  1. this.FpSpread1.Sheets[0].Cells[0,1].Text="测试";
复制代码

2.下拉框里面赋初始值:

  1.             if (!IsPostBack)
  2.             {
  3.                 string[]cbstr;
  4.                 string[]strval;
  5.                 cbstr=new String[]{"One","Two","Three"};
  6.                 strval=new String[]{"1","2","3"};
  7.                 FarPoint.Web.Spread.ComboBoxCellType cb=new FarPoint.Web.Spread.ComboBoxCellType();
  8.                 cb.ShowButton = true;
  9.                 cb.Items=cbstr;
  10.                 this.FpSpread1.Sheets[0].Columns[1].CellType=cb;
  11.                 this.FpSpread1.Sheets[0].Cells[0, 1].Value = 2;
  12.             }
复制代码

3.提取 TextCellType 的值:只需要取对应单元格的 Text 属性即可。
回复 使用道具 举报
shenqiumonkey
银牌会员   /  发表于:2012-4-28 15:12:00
20#

回复 19# iceman 的帖子

不嫌我麻烦您,
我继续追问了
没办法第一次用这东西,
按照最后的方法,
我想让文本框里面的值录入数据库.
必须做成表格样式了,
因为数据库绑定的数据都是页头,
对不对呢,
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部