public static void SetOptions(GridView gridView, ListViewInfoNodeWrapper listViewInfoNodeWrapper)
        {
            gridView.OptionsView.NewItemRowPosition = (NewItemRowPosition)Enum.Parse(typeof(NewItemRowPosition), new SupportNewItemRowNodeWrapper(listViewInfoNodeWrapper.Node).NewItemRowPosition.ToString());
            gridView.OptionsBehavior.EditorShowMode = EditorShowMode.Click;
            gridView.OptionsBehavior.Editable = true;
            gridView.OptionsBehavior.AllowIncrementalSearch = true;
            gridView.OptionsBehavior.AutoSelectAllInEditor = false;
            gridView.OptionsBehavior.AutoPopulateColumns = false;
            gridView.OptionsBehavior.FocusLeaveOnTab = true;
            gridView.OptionsBehavior.AutoExpandAllGroups = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GridListEditor.AutoExpandAllGroups, false);
            gridView.OptionsSelection.MultiSelect = true;
            gridView.OptionsSelection.EnableAppearanceFocusedCell = true;
            gridView.OptionsNavigation.AutoFocusNewRow = true;
            gridView.OptionsNavigation.AutoMoveRowFocus = true;
            gridView.OptionsView.ShowDetailButtons = false;
            gridView.OptionsDetail.EnableMasterViewMode = false;
            gridView.OptionsView.ShowIndicator = true;
            gridView.OptionsView.ShowGroupPanel = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GridListEditor.IsGroupPanelVisible, false);
            gridView.OptionsView.ShowFooter = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GridListEditor.IsFooterVisible, true);
            gridView.OptionsView.ShowAutoFilterRow = listViewInfoNodeWrapper.IsFilterPanelVisible;
            gridView.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            gridView.ShowButtonMode = ShowButtonModeEnum.ShowOnlyInEditor;
            gridView.ActiveFilterEnabled = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GridListEditor.IsActiveFilterEnabled, true);

            gridView.OptionsDetail.AllowExpandEmptyDetails =
                listViewInfoNodeWrapper.Node.GetAttributeBoolValue(AllowExpandEmptyDetails,
                                                                   false);

            gridView.OptionsNavigation.EnterMoveNextColumn =
                listViewInfoNodeWrapper.Node.GetAttributeBoolValue(EnterMoveNextColumn,
                                                                   false);

            gridView.OptionsNavigation.UseTabKey = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(UseTabKey,
                                                                                                      false);


            gridView.OptionsView.ShowColumnHeaders =
                listViewInfoNodeWrapper.Node.GetAttributeBoolValue(IsColumnHeadersVisible, true);
            //            DevExpress.XtraGrid.Views.Grid.NewItemRowPosition newItemRowPosition =
            //                listViewInfoNodeWrapper.Node.GetAttributeEnumValue(NewItemRowPositionAttributeName,
            //                                                                   DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.
            //                                                                       None);
            //            gridView.OptionsView.NewItemRowPosition = newItemRowPosition;
            gridView.OptionsBehavior.AutoSelectAllInEditor =
                listViewInfoNodeWrapper.Node.GetAttributeBoolValue(AutoSelectAllInEditorAttributeName,
                                                                   true);
            gridView.OptionsBehavior.EditorShowMode =
                listViewInfoNodeWrapper.Node.GetAttributeEnumValue(EditorShowModeAttributeName,
                                                                   EditorShowMode.MouseUp);
            gridView.OptionsView.ShowFooter = listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GridListEditor.IsFooterVisible, true);

            SetColumnOptions(gridView, listViewInfoNodeWrapper);

            if (listViewInfoNodeWrapper.ShowAutoFilterRow && listViewInfoNodeWrapper.Node.GetAttributeBoolValue(GuessAutoFilterRowValuesFromFilter))
            {
                gridView.GuessAutoFilterRowValuesFromFilter();
            }
        }