找回密码
 立即注册

QQ登录

只需一步,快速开始

woxptc

注册会员

2

主题

6

帖子

12

积分

注册会员

积分
12

活字格认证

最新发帖
woxptc
注册会员   /  发表于:2012-4-12 14:37  /   查看:5125  /  回复:4
每一行的最后3个Column是ButtonCellType: InsertButton, UpdateButton, DeleteButton
ButtonCellType有后台事件吗?
点击某一行的某个Button后怎么触发后台事件去取得所点击button对应的这一行的所有信息呢?
取得信息包括RadioButtonListCellType的选择状况.
ButtonCellType没有后台事件的话, 那么Spread有相关的别的处理方法吗?
请教!!!

4 个回复

倒序浏览
woxptc
注册会员   /  发表于:2012-4-12 14:38:00
沙发
还有..如何得知是点击的哪一行的哪一个button
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-12 16:05:00
板凳

回复 2# woxptc 的帖子

woxptc 你好,
ButtonCellType 对应后台事件为 ButtonCommand ,请参考代码:

  1.         protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
  2.         {
  3.             //获得点击 Button 单元格坐标
  4.             Point cellIndex = (Point)e.CommandArgument;
  5.             //取得 Button 所在行索引
  6.             int rowIndex = cellIndex.X;
  7.             //取得该行信息,进而可以获得该行信息。
  8.             FarPoint.Web.Spread.Row activeRow = this.FpSpread1.Sheets[0].Rows[rowIndex];
  9.         }
复制代码
回复 使用道具 举报
woxptc
注册会员   /  发表于:2012-4-12 16:37:00
地板
感谢版主, 问题已解决!!!
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2012-4-12 16:55:00
5#

回复 4# woxptc 的帖子

woxptc 客气了~
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部