漫漫技术人生路

C#

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
Protected Sub GridView1_RowCreated(ByVal sender As ObjectByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
        
If (e.Row.RowType = DataControlRowType.DataRow) Then
            
Dim bt1 As Button = CType(e.Row.FindControl("cart"), Button)
            bt1.CommandArgument 
= e.Row.RowIndex.ToString
            
Dim bt2 As Button = CType(e.Row.FindControl("favorite"), Button)
            bt2.CommandArgument 
= e.Row.RowIndex.ToString
        
End If

    
End Sub
posted on 2006-10-27 16:42  javaca88  阅读(1194)  评论(0)    收藏  举报