Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常将数据绑定到 gridview 列是这样的:
Text='<%# Bind("regionName") %>'
如何改为按索引绑定?例如:
Text='<%# Bind(1) %>'
原因是因为我使用 2D 列表作为数据源,而 2D 列表没有列名。
我使用了以下内容List<string[]>,它在转发器中工作,不确定gridview:
List<string[]>
Text='<%# Eval("[1]")%>'