I have never had any problems using DataSets as non-static members. I suspect that something slightly more subtle is going wrong. Are you absolutely sure that (a) the methods are executing in the order you think they are and (b) that they are actually executing on the same instance both times?
-- Ian Griffiths DevelopMentor ----- Original Message ----- From: "Karen Healey" <[EMAIL PROTECTED]> > I've created a class in C# with a DataSet data member declared like this: > > private DataSet dstMaster; > > I have a method that builds it by concatenating three datasets together > like this: > > dstMaster = dstOrg.Copy(); > dstMaster.Merge( dstContact ); > dstMaster.Merge( dstFunding ); > > In a SEPARATE method, I try to access the contents of the dataset but it > is empty! > > If I declare the dataset as static, I don't have this problem. I don't > understand why this is necessary. > > If someone could explain this to me it would be appreciated. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.