The DataFilter control supports serialization through SaveFilterExpression and LoadFilterExpression methods of the C1DataFilter class. The SaveFilterExpression method saves the current filter expressions from C1.Win.DataFilter.C1DataFilter.Filters collection to an XML file. The LoadFilterExpression method loads the saved filter expressions from an XML file.
The following GIF demonstrates serialization and deserialization support in the DataFilter control.
The following code shows an example of saving filter expressions to an XML file:
The following code shows an example of loading filter expressions from an XML file: