private void cmbStorageType_SelectedIndexChanged(object sender, EventArgs e)
        {
            layoutStackStored.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            isStorageTypeChanged = true;
            if (cmbStorageType.SelectedValue.ToString() == StorageType.BulkStore)
            {
                layoutStackStored.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
                gridPickfaceLocationsContainer.Text = "Preffered Pallet Locations";
                // Bind it if possible.
                if (itemId != 0)
                {
                    PalletLocation pl = new PalletLocation();
                    pl.LoadPreferredLocationsFor(itemId);
                    lstPreferredPalletLocation.DataSource = pl.DefaultView;

                   // lstPreferredPalletLocation.DataSource = ipr.DefaultView;
                    gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                    grpPrefferedLocation.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;

                    // Bind Pickface Location

                    DataTable dt = pf.GetPalletLocationsForItemLookup(itemId);
                    DataRow drw = dt.NewRow();
                    //drw["ID"] = null;
                    drw["Label"] = "No Pick Face Location Set";
                    dt.Rows.Add(drw);
                    lkRepositoryPickFaces.DataSource = dt;

                    //pf.PalletLocationForItem(itemId);
                    pf.LoadPalletLocationForItemGrid(itemId);
                    gridPickfaceLocations.DataSource = pf.DefaultView;
                }
                layoutControlItem10.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;

            }
            else
            {

                grpPrefferedLocation.Text = @"Fixed Locations";
                grpPrefferedLocation.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
                gridPickfaceLocationsContainer.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            }

            Shelf slf = new Shelf();
            slf.LoadShelvesByStorageType(cmbStorageType.SelectedValue.ToString());
            cmbRack.DataSource = slf.DefaultView;
        }