請教gridview 問題
<asp:GridView ID="GridView1" runat="server" >......................................
<ItemTemplate>
<tr>
<%
For i = 0 To dt.Columns.Count - 1 <---- dt 是 DataTable
%>
<td>
<%#Eval(dt.Columns(i).ColumnName)%> <------------這句error
</td>
<%
Next
%>
</tr>
</ItemTemplate>
.....................................
</asp:GridView>
要怎樣改才正常? 救命ar
[ 本帖最后由 chris1a2b3c 于 2010-1-13 17:32 编辑 ]