For Each gvr As GridViewRow In Me.GridView1.Rows Dim numStr As String = CType(gvr.FindControl("tb_gv_num"), TextBox).Text MsgBox(numStr) Next
这条代码是获取GridView中每行Textbox的值,现在问题来了,我只想要GridView中第一行中Textbox的值,该怎么写!
倚天杖
相关分类