.NET中的数据集 [英] Dataset in .NET

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

问题描述

大家好
我想在我的.NET应用程序中在运行时设计一个数据库.
为此,我想使用具有DataSet作为selectedObject(propertyGrid1.selectedObject = dataset1)的PropertyGrid.
对我来说这将是非常好的,因为我不必编写任何代码.
问题是我无法添加任何表或列,因为该按钮已停用.

Hi all
i would like to design a Database at runtime in my .NET Application.
For that i would like to use the PropertyGrid who has the DataSet as the selectedObject (propertyGrid1.selectedObject = dataset1).
For me this would be very nice because i dont have to write any code.
The Problem is i can not add any Tables or Columns because the Button is deactivated.
does anybody have an idea?

推荐答案

禁用了哪个按钮?您是说selectedObject属性的属性网格中的...按钮吗?
Which button is disabled? Do you mean the ... button in the property grid of the selectedObject property?


在PropertyGrid(其中selectedObject是数据集)中,您可以看到表列表.添加设计时间,您可以添加新表.在运行时,您无法添加新表,因为此按钮已被禁用.
复制步骤:
1.创建新项目
2.创建新的数据集
3.将Propertygrid放入表单
4.编辑属性grid = Dataset1的属性SelectedObject
5.运行并测试
我很高兴收到您的来信.
谢谢您的宝贵时间
In the PropertyGrid (where the selectedobject is the Dataset) you can see the Tables List. Add design time you can add new tables. At runtime you can not add a new table because this Button is disabled.
Steps to reproduce:
1. create new Project
2. create new Dataset
3. put a Propertygrid to the Form
4. edit the Property SelectedObject of the propertygrid = Dataset1
5. Run and test it
Im happy to hear from you.
Thanks for your time


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

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