GridView RowCommand Index
2011-10-08 13:31
253 查看
前台绑定时:CommandArgument=<%#((GridViewRow) Container).RowIndex %>
后台获取索引:int rowIndex = Convert.ToInt32(e.CommandArgument);
这样可以在RowCommand方法里获取到RowIndex.
后台获取索引:int rowIndex = Convert.ToInt32(e.CommandArgument);
这样可以在RowCommand方法里获取到RowIndex.
相关文章推荐
- gridview /TemplateField /RowCommand/ 当前行index /Insert/update/delete
- GridView增删改查之RowCommand事件
- GridView.RowCommand 事件
- RowCommand Event in GridView
- GridView使用技巧之:如何在RowCommand里获取模板列里绑定的内容?
- GridView / RowCommand / e.CommandArgument
- GridView RowCommand事件中取得當前行
- DevExpress中通过数据的Row Index 或 值 取得 GridView的RowHandle
- **GridView**在GridView的RowCommand里取列的值
- gridview 中模板列无法响应row_command事件
- 获得GridView内的RowIndex,取得DataKeys 的值
- GridView使用技巧之:如何在RowCommand里获取模板列里绑定的内容?
- GridView1.DataKeys[e.RowIndex].Value.ToString() 必须为非负值并小于集合大小 参数名:index
- GridView1.DataKeys[e.RowIndex].Value.ToString() 索引超出范围问题
- ((TextBox)(GridView1.Rows[e.RowIndex].Cells[1].Controls[0])).Text.ToString().Trim()
- GridView使用之RowCommand事件的使用
- GridView RowCommand 获取列值
- Gridview之RowCommand,ButtonField[add buttons and use the RowCommand event to add custom functionality to the control]
- GridView RowCommand (handle with e.CommandArgument)
- GridView中的RowCommand与Sorting事件的一些问题