Hi Nicholas,
I am writing what exactly my situation is:
I first create a form and set it as mdicontainer, then, create a second form
and set its mdiparent property to first form. Now I have two forms, parent
and child form.
Now, I can create dataset in parent form as you said:
DataSet ds = new DataSet();
But I cannot create the dataset in the second form...
DataSet ds2 = new DataSet();
It gives error:
F:\Ruhsat\M1.cs(2429): The type or namespace name 'DataSet' could not be
found (are you missing a using directive or an assembly reference?)
using System.Data.SqlClient; is there and I can create sqlcommand for
example, but I cannot create DataTable or DataSet.
Please try it, on VS.NET 2002
Thanks....
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uP**************@tk2msftngp13.phx.gbl...
2003et,
You can create a data set anywhere like this:
// Create a data set.
DataSet pobjDataSet = new DataSet();
But it wouldn't provide you with much off the bat. What are you
trying to do, or what are you finding you can't do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"2003et" <e1*****@metu.edu.tr> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl... Couldn't I create DataSet in child forms????
Is there any solution for this???
Thanks in advance!
E.T.