internal static void ResetGridInfos(MyGrid grdSetup, IGrid masterGrid)
        {
            if (masterGrid == null)
            {
                return;
            }

            masterGrid.LoadGridDefaultLayout();
            masterGrid.AutoAdjustColumnWidth();

            //LoadGridInfos(grdSetup, masterGrid);
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="grid"></param>
        private static void LoadDefaultLayout(this IGrid grid)
        {
            grid.LoadGroupLayout();

            if (!grid.GridHelper.m_firstLoad)
            {
                ILayoutControl layout = grid as ILayoutControl;
                if (layout != null)
                {
                    if (!layout.LoadLayout())
                    {
                        // maybe too slow
                        grid.AutoAdjustColumnWidth();
                    }
                    else
                    {
                        grid.GridHelper.m_firstLoad = true;
                    }
                }
            }
        }
        internal static void ResetGridInfos(MyGrid grdSetup, IGrid masterGrid)
        {
            if (masterGrid == null)
                return;

            masterGrid.LoadGridDefaultLayout();
            masterGrid.AutoAdjustColumnWidth();

            //LoadGridInfos(grdSetup, masterGrid);
        }