You can save and load the schema and data entered into the WinDataSource™ in Binary or XML format at runtime at runtime as well as design time using the WinDataSource designer.
Using the overloaded SaveAsXml or the overloaded SaveAsBinary , you can pass a string filename or a System.IO.Stream object to the method to persist the data and/or schema to disk or to a stream object. To load a previously persisted XML or Binary formatted object data into an existing WinDataSource, use the overloaded LoadFromXml or LoadFromBinary methods. These methods will accept a string filename or an I/O stream.
Passing in true as the boolean will save the data and schema of a WinDataSource object to a file on the file system. Passing in false as the boolean will save only the schema of a WinDataSource object to a file on the file system (both SaveAsXml and SaveAsBinary methods are shown). The string parameter is the path to your data.
SaveAsXml(string, boolean)
SaveAsBinary(string, boolean)
Passing in true as the boolean will load data and it’s schema to a WinDataSource object from a file on the file system. Passing in false as the boolean will load the schema of a WinDataSource object (both LoadFromXml and LoadFromBinary methods are shown). The string parameter is the path to your data you wish to load.
LoadFromXml(string, boolean)
LoadFromBinary(string, boolean)