会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
孙老板
博客园
首页
新随笔
联系
订阅
管理
2010年5月19日
gridview的Rowcommand命令中获取行索引的方法总结
摘要: 一、通过命令源获取当前行索引。方法比较多, GridView 的 Command 事件中无法象 DataGrid 那样直接获取行,法1,GridViewRow drv = ((GridViewRow)(((Button)(e.CommandSource)).Parent.Parent));//CommandSource 引起事件的命令源,(疑问,根据MSDN说的是GridView,如果这样的话这样...
阅读全文
posted @ 2010-05-19 22:42 孙老板
阅读(876)
评论(0)
推荐(2)
编辑
公告