Asp.net自定义控件属性打开一个Mssql表并加载字段? [英] Asp.net Custom Control properties to open a Mssql table and load fields ?

查看:89
本文介绍了Asp.net自定义控件属性打开一个Mssql表并加载字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个自定义控件,该控件在设计时会在Vs2008的属性窗口中打开Mssql表并在表中加载字段.

我想开发一个自定义的网格控件.我想打开一个MSSQL表并在设计时在属性"窗口中加载字段.

1)第一个选项应使用浏览按钮询问表名称以选择表.

2)选择表格后,必须允许选择字段.

谁能帮我提供示例代码或信息.

I want to develop a custom control , in which during design time the properties window of Vs2008 to open a Mssql Table and load the fields in the table .

I want develop a custom grid control . I want to open a MSSQL Table and load the fields during design time in Properties windows .

1) First option should ask for table name with a browse button to select the table .

2) Once the table is selected it must allow the fields to be selected .

Can any one help me with a sample code or information .

推荐答案

您的控件需要良好的设计时支持,并需要使用自定义属性编辑器来选择表和填充字段. />
希望这会有所帮助

http://msdn.microsoft.com/en-us/magazine/cc164048.aspx#S3 [ ^ ]

http://msdn.microsoft.com/en-us/library/ms171840.aspx [ ^ ]

创建具有设计时支持的多页Windows窗体控件 [
Your Control needs a good design time support with custom property editor for selecting tables and populating fields.

Hope this will help

http://msdn.microsoft.com/en-us/magazine/cc164048.aspx#S3[^]

http://msdn.microsoft.com/en-us/library/ms171840.aspx[^]

Creating a Multi-Page Windows Forms Control with Design Time Support[^]


这篇关于Asp.net自定义控件属性打开一个Mssql表并加载字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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