public Main() { InitializeComponent(); recordBindingSource.DataSource = DataHelper.GetData(10); provider = new FilterNameProvider(gridView1) { AllowSettingFilterNames = true }; }
public static void RestoreLayoutFromXmlEx(this ColumnView view, FilterNameProvider provider, string filePath) { XmlXtraSerializer serializer = new XmlXtraSerializer(); serializer.DeserializeObjects(new XtraObjectInfo[] { new XtraObjectInfo("View", view), new XtraObjectInfo("Filters", provider) }, filePath, "DXSample"); }