开发者

Gridview doesn't update insert/update commands

开发者 https://www.devze.com 2023-01-08 01:27 出处:网络
I have a gridview that is set to a sql datasource, it is generating the columns automatically. If I add a column to the table it is referencing, it will draw that column and display it, but it does no

I have a gridview that is set to a sql datasource, it is generating the columns automatically. If I add a column to the table it is referencing, it will draw that column and display it, but it does not update the insert/update commands 开发者_如何学编程to include the new column. Is there any way have it rebuild those commands automatically?


You will have to update the insert/update commands to specify the parameters, the only reason I can think that your gridview is showing the column after you have added it to the table is because your select command is doing a select * from [table]

0

精彩评论

暂无评论...
验证码 换一张
取 消