void LoadData()
        {
            // splashScreenManager1.ShowWaitForm();
            System.Threading.Thread.Sleep(1000);
            bal = new M_CustomerBAL();

            objSearh        = new M_CustomerDTO();
            customerObjList = bal.FindByObjList(objSearh);
            this.gridView1.GridControl.DataSource = customerObjList;
            foreach (DevExpress.XtraGrid.Columns.GridColumn item in gridView1.Columns)
            {
                item.MaxWidth = 0;
            }
            gridView1.HorzScrollVisibility               = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;
            gridView1.OptionsView.BestFitMode            = DevExpress.XtraGrid.Views.Grid.GridBestFitMode.Full;
            gridView1.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
            gridView1.OptionsView.ColumnAutoWidth        = false;
            gridView1.BestFitColumns();
            System.Threading.Thread.Sleep(1000);
            //splashScreenManager1.CloseWaitForm();
        }
Example #2
0
        void LoadData()
        {
            // splashScreenManager1.ShowWaitForm();
            System.Threading.Thread.Sleep(1000);
            bal = new M_CustomerBAL();

            objSearh        = new M_CustomerDTO();
            customerObjList = bal.FindByObjList(objSearh);
            this.gridView1.GridControl.DataSource = customerObjList;

            gridView1.MasterRowGetRelationName += (s, e) => {
                switch (e.RelationIndex)
                {
                case 0:
                    e.RelationName = "Order Detail";
                    break;

                case 1:
                    e.RelationName = "Customer Details";
                    break;

                case 2:
                    e.RelationName = "Employee Details";
                    break;
                }
            };


            foreach (DevExpress.XtraGrid.Columns.GridColumn item in gridView1.Columns)
            {
                item.MaxWidth = 0;
            }
            gridView1.HorzScrollVisibility               = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;
            gridView1.OptionsView.BestFitMode            = DevExpress.XtraGrid.Views.Grid.GridBestFitMode.Full;
            gridView1.OptionsView.ColumnHeaderAutoHeight = DevExpress.Utils.DefaultBoolean.True;
            gridView1.OptionsView.ColumnAutoWidth        = false;
            gridView1.BestFitColumns();
            System.Threading.Thread.Sleep(1000);
            //splashScreenManager1.CloseWaitForm();
        }