What does it mean when a dataset is in designMode

T

Tony

Hello!

The text say "The DesignMode property for DataSet class returns Boolean
value that indicates whether the DataSet is in design mode."
So what does that mean when a DataSet is in design mode ?
Can somebody write a code snippet that show that ?

//Tony
 
T

Tony

Big Steel said:
It means you are dragging and dropping tables to a dataset or to a dataset
adapter in the VS designer instead of you doing it manually through code.

VS has wizards that will hook-up all that crap for you, and if you try to
start changing it in code without going back to the wizards in a design
mode, then you will have trouble and things are most likely not going to
work again -- been there and done that.

Hello!

It does not work as I understood you.
I created a types dataset and called it Northwind and then I dragged the
Customer table into it from Server explorer.
Here the DesignMode is still false. It should be true because I use the
dataSet in design mode now.
Can somebody explain this.

public Form1()
{
InitializeComponent();
Northwind ds = new Northwind();
Boolean b1 = ds.DesignMode;
}

//Tony
 
R

Registered User

Hello!

The text say "The DesignMode property for DataSet class returns Boolean
value that indicates whether the DataSet is in design mode."
So what does that mean when a DataSet is in design mode ?
Can somebody write a code snippet that show that ?
It's not unusual for databound controls have two data sources, one for
design-time binding and one for use at run-time. The results of a
search for "designtime support for databinding" can be found at
<http://social.msdn.microsoft.com/search/en-US?query=designtime support for databinding>

regards
A.G.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top