473,394 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

code generation for a property of type DataSet

I have a form which contains a property of type System.Data.DataSet.
I assign a DataSet to this property at design-time the forms designer.
When I now check the dataSet property in the property browser the
values are there, but they are not serialized into the formcode.

Property:

[Bindable(true),Category("Data"),
TypeConverter("System.Windows.Forms.Design.DataSou rceConverter,
System.Design"),DesignerSerializationVisibility(De signerSerializationVisibility.Content)]
public DataSet InputDataSet
{
get
{
return m_inputDS;
}
}

Designer Code:
....
PropertyDescriptor propDS =
TypeDescriptor.GetProperties(myForm)["InputDataSet"];
if (propDS != null)
{
((DataSet)propDS.GetValue(myForm)).Merge(ds);
}
....

I'd really appreciate if someone could help me with that problem.

best regards
Ralf
Nov 16 '05 #1
1 1488
ra***********@web.de (Ralf Hoeppner) wrote in
news:7c**************************@posting.google.c om:
I have a form which contains a property of type System.Data.DataSet.
I assign a DataSet to this property at design-time the forms designer.
When I now check the dataSet property in the property browser the
values are there, but they are not serialized into the formcode.


This is becuase a dataset is very large and would be difficult to put in the
form code. IIRC it puts itself into a resource, and then loads itself from
the resource.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anders Nilsson | last post by:
I use a dataset to generate XML. By default the generated XML doesn't include empty columns. How can I control the generation so that the entire content of the dataset is comming out as XML,...
0
by: MT | last post by:
I have a very strange problem. I created an XSD file with the following root: <Database> </Database> However, since C++ does not allow you to have a property with the same name as the class,...
0
by: Matthew Baskey | last post by:
Hello, I am loading a DataSet from an xml file and binding it to a hierarchical datagrid. I am trying to write some keys between the elements in my xml file into the xsd file. When I write the...
9
by: Hayato Iriumi | last post by:
Hello, I hear some hypes about creating code to generate C# or VB .NET code, that is, code generation (sounds straight forward enough). I haven't really seen how it's done in real world. I'm...
9
by: Alan Silver | last post by:
Hello, I have a user control which I am trying to load dynamically, but am running into problems. I think the problem is because I have two .ascx files that refer to the same .ascx.cs file. A...
0
by: Ashish | last post by:
Iam working on a project that would use web services to transfer business objects around. I worked a little bit with the new SchemaImporterExtension class to tweak the proxy generation, and Iam...
2
by: Brad Isaacs | last post by:
ASp.NET 2.0 , Visual Studio 2005 I am working with the Add NEw Item >DataSet I have created my Dataset and call it, when I run my project, I receive an error message because the dataset is...
13
by: SevDer | last post by:
Hi, Can someone tell me how to generate classes from XSD files? Is there an easy way to convert it into typed datasets etc? Or any other suggestion is welcomed. -- SevDer
6
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
Yesterday Visual Studio gave me a strange error both at compiletime and at designtime that had no obvious connection to anything I had changed recently. After some effort tracking down the problem...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.