VS2010中的ActiveX数据网格 [英] ActiveX datagrid in VS2010

查看:118
本文介绍了VS2010中的ActiveX数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我试图在VS2010 VB.net中使用ActiveX datagrid,实际上,我使用VS2010向导将我的VB项目转换为VB.net。





我看到ActiveX datagrid没有转换为默认的datagrid(VS2010提供)。现在我想继续使用ActiveX。



现在我想知道如何将ActiveX控件绑定到SQL数据库。我尝试使用向导选项,创建了数据集。 但是当我转到ActiveX数据网格控件的DataSource属性时,我在那里只做了一个选项。我无法看到我创建的数据集。是否有任何设置可以查看正确的数据集或数据源?



注意:我按照相同的步骤将SQL数据库绑定到默认网格,这是成功的。





请帮忙。



问候,

Joy

Hello Everyone,

I am trying to use ActiveX datagrid in VS2010 VB.net, actually, I converted my VB project to VB.net using VS2010 wizard.


I see ActiveX datagrid was not converted to default datagrid ( that VS2010 provides). Now I was thinking to continue with ActiveX.

Now I want to know how can I bind ActiveX control to SQL database. I tried using wizard option, created dataset. But when I go to DataSource property of ActiveX datagrid control,I do only none option there.I am not able to see the datset that I had created. Is there any settings to see proper dataset or datasource??

Note: I follow same steps to bind SQL database with default grid, It is successfull.


Please help.

Regards,
Joy

推荐答案

如果您真的想坚持使用ActiveX控件,那么本文可能会有所帮助 [ ^ ]



但是我建议你在有机会的时候将控件升级到标准的.NET datagridview
If you really want to stick with the ActiveX control then this article may be helpful[^]

However I would recommend upgrading the control to a standard .NET datagridview while you have the chance


这篇关于VS2010中的ActiveX数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆