开发者

Problem with datagridvieew in vb.net

开发者 https://www.devze.com 2022-12-22 17:22 出处:网络
I\'m trying to add a datagridview in vb.net, but it does not allow me to change the connection string or the database that should be imported to connect to it. The only thing that I\'m seeing is the p

I'm trying to add a datagridview in vb.net, but it does not allow me to change the connection string or the database that should be imported to connect to it. The only thing that I'm seeing is the previous ms sql database that I connected with datagridview and everytime I click the new connection, the window closes and it leaves me with the datagridview with the previous 开发者_如何转开发connection that I have.

And its not applicable because, now I want to connect it with mysql. Not ms sql. Its some sort of a cache like feature in vb.net, how do I get rid of it. so that I can add the new connection for mysql?

Do I need to reinstall visual studio 2008?


Try deleting the XSD for your datasource from the solution and then remove the bindings to the DataGridView in your forms formx.designer.vb file.

Probably not the best way of achieving what you want and it will need a little bit of tidying up in the code, but should do the trick.

0

精彩评论

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

关注公众号