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 绑定到具有 select 语句的 SqlDataSource 控件,如果稍后以编程方式更改该 select 语句以选择一组不同的列,则 GridView 将产生错误,错误是
“System.Data.DataRowView”不包含名称为 [An Expected Column Name] 的属性
如何不时执行不同的选择语句,返回不同的列并在 GridView 中显示它们的结果?
谢谢