views:

24

answers:

1

Hi there, I have a program with a devexpress PanelControl which contains other data controls (Text box, lists etc'). I need to save this panel (All the data that the user entered) to my DB to display it later. I tried to serialize the PanelControl using BinaryFormatter but the class is not serializable.. Any idea how I can serialize the entire panel? I hate having to access each Text field of every control and append it to a file.. It just seems wrong \=

A: 

Hi,

I would suggest that you do not serialize your GUI controls for this purpose. Perhaps, it is better to adjust bindings and bind your editors to some data? In this case, you will have to serialize your DataSource, not the GUI, and this looks like a much more better solution...

DevExpress Team