void SetProperty(LayoutViewCustomizationForm form, GridControl obj, LayoutViewMode value) { var grid = GetAll(form.Controls[0], typeof(GridControl)).ElementAt(0); if (grid != null) { obj = grid as GridControl; (obj.MainView as LayoutView).OptionsView.ViewMode = PreviewLayoutViewMode; } }
public void RestoreDefaultAppearance() { Text = "LayoutView Customization"; btnShowMoreCardsText = "Show &More Cards"; btnOkText = "&Ok"; btnCancelText = "&Cancel"; btnApplyText = "&Apply"; btnShowMoreCardsLocation = new Point(10, 9); btnOkLocation = new Point(424, 9); btnCancelLocation = new Point(512, 9); btnApplyLocation = new Point(600, 9); HintPanelText = "Customize the card layout using drag-and-drop and customization menu, and preview data in the View Layout page."; HintPanelVisible = true; TabPageEnabled = true; TabControlVisible = true; PreviewLayoutViewMode = LayoutViewMode.SingleRecord; }