Normally binding data to gridview column is like this:
Text='<%# Bind("regionName") %>'
How do I bind by index instead? For example:
Text='<%# Bind(1) %>'
The reason is because I am using a 2D list for datasource, and 2D list don't have column names.
我对List<string[]>
使用了以下内容,但它在转发器内部有效,不确定gridview:
Text='<%# Eval("[1]")%>'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.