Пример #1
0
        private void lookUpEdit1_EditValueChanged(object sender, EventArgs e)
        {
            selectedRackID = Convert.ToInt32(lkRackID2.EditValue);
            //gridControl1.DataSource = null;
            //gridView1.Columns.Clear();

            BackgroundWorker bw = new BackgroundWorker();

            bw.WorkerReportsProgress = true;
            DataTable dtbl = PalletLocation.GetIDItemDataTableFor(selectedRackID, bw);

            gridView2.Columns.Clear();

            ShelfRowColumn src = new ShelfRowColumn();

            src.LoadColumnsForShelf(selectedRackID);
            while (!src.EOF)
            {
                GridColumn gc = gridView2.Columns.Add();
                gc.FieldName  = src.Index.ToString();
                gc.Caption    = src.Label;
                gc.Visible    = true;
                gc.ColumnEdit = repositoryItemButtonEdit1;
                src.MoveNext();
            }

            gridItemDetailByLocation.DataSource = dtbl;

            // bind
            lkHighlightItems.Properties.DataSource = Shelf.GetItemsOnShelf(selectedRackID);
        }
Пример #2
0
        private void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            DataTable dtbl = PalletLocation.GetIDItemDataTableFor(selectedRackID, bw);

            e.Result = dtbl;
        }