GridView RowCommand事件中取得當前行

Dim row As GridViewRow = CType(CType(e.CommandSource, Button).NamingContainer, GridViewRow)
'取得當前行
Dim rowIndex As Integer = row.RowIndex
'取得行號

 

posted @ 2010-03-04 09:42  天际翔龙  阅读(211)  评论(0编辑  收藏  举报