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.
我有一个设置为 sql 数据源的 gridview,它会自动生成列。如果我将一列添加到它所引用的表中,它将绘制该列并显示它,但它不会更新插入/更新命令以包含新列。有没有办法让它自动重建这些命令?
您将不得不更新插入/更新命令以指定参数,我认为您的 gridview 在将其添加到表后显示该列的唯一原因是因为您的 select 命令正在执行select * from [table]
select * from [table]