62,041
社区成员
发帖
与我相关
我的任务
分享
<asp:TemplateField HeaderText="aa">
<ItemTemplate>
<asp:Label ID="aa" runat="server" Width="50px" Text='<%#Bind("aa") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
For i As Integer = 0 To GridView1.Rows.Count - 1
Dim row As GridViewRow = GridView1.Rows(i)
Dim aa as string=""
aa=DirectCast(row.Cells(0).FindControl("aa"), Label).Text
End If
Conn.Close()
Next